0s autopkgtest [16:34:03]: starting date and time: 2024-07-24 16:34:03+0000 0s autopkgtest [16:34:03]: git checkout: fd3bed09 nova: allow more retries for quota issues 0s autopkgtest [16:34:03]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.al96774_/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:pyqt5,src:python3-stdlib-extensions --apt-upgrade pandas --timeout-short=300 --timeout-copy=40000 --timeout-test=40000 --timeout-build=40000 '--env=ADT_TEST_TRIGGERS=pyqt5/5.15.11+dfsg-1 python3-stdlib-extensions/3.12.4-2' -- lxd -r lxd-armhf-10.145.243.202 lxd-armhf-10.145.243.202:autopkgtest/ubuntu/oracular/armhf 147s autopkgtest [16:36:30]: testbed dpkg architecture: armhf 149s autopkgtest [16:36:32]: testbed apt version: 2.9.6 149s autopkgtest [16:36:32]: @@@@@@@@@@@@@@@@@@@@ test bed setup 159s Get:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease [126 kB] 163s Get:2 http://ftpmaster.internal/ubuntu oracular-proposed/restricted Sources [8548 B] 163s Get:3 http://ftpmaster.internal/ubuntu oracular-proposed/main Sources [56.2 kB] 163s Get:4 http://ftpmaster.internal/ubuntu oracular-proposed/universe Sources [394 kB] 164s Get:5 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse Sources [4288 B] 164s Get:6 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf Packages [71.2 kB] 164s Get:7 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf c-n-f Metadata [1428 B] 164s Get:8 http://ftpmaster.internal/ubuntu oracular-proposed/restricted armhf Packages [1368 B] 164s Get:9 http://ftpmaster.internal/ubuntu oracular-proposed/restricted armhf c-n-f Metadata [120 B] 164s Get:10 http://ftpmaster.internal/ubuntu oracular-proposed/universe armhf Packages [383 kB] 164s Get:11 http://ftpmaster.internal/ubuntu oracular-proposed/universe armhf c-n-f Metadata [6916 B] 164s Get:12 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse armhf Packages [2072 B] 164s Get:13 http://ftpmaster.internal/ubuntu oracular-proposed/multiverse armhf c-n-f Metadata [120 B] 171s Fetched 1055 kB in 6s (175 kB/s) 172s Reading package lists... 196s tee: /proc/self/fd/2: Permission denied 224s Hit:1 http://ftpmaster.internal/ubuntu oracular-proposed InRelease 224s Hit:2 http://ftpmaster.internal/ubuntu oracular InRelease 224s Hit:3 http://ftpmaster.internal/ubuntu oracular-updates InRelease 224s Hit:4 http://ftpmaster.internal/ubuntu oracular-security InRelease 228s Reading package lists... 228s Reading package lists... 228s Building dependency tree... 228s Reading state information... 229s Calculating upgrade... 229s The following package was automatically installed and is no longer required: 229s python3-six 229s Use 'apt autoremove' to remove it. 229s The following packages have been kept back: 229s python3-gdbm 229s The following packages will be upgraded: 229s cloud-init dmsetup gcc-14-base gdisk libbpf1 libdevmapper1.02.1 libgcc-s1 229s libstdc++6 libudisks2-0 libxml2 logrotate netcat-openbsd networkd-dispatcher 229s python3-launchpadlib systemd-hwe-hwdb udisks2 230s 16 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 230s Need to get 3209 kB of archives. 230s After this operation, 48.1 kB disk space will be freed. 230s Get:1 http://ftpmaster.internal/ubuntu oracular/main armhf gcc-14-base armhf 14.1.0-5ubuntu1 [49.8 kB] 230s Get:2 http://ftpmaster.internal/ubuntu oracular/main armhf libstdc++6 armhf 14.1.0-5ubuntu1 [711 kB] 230s Get:3 http://ftpmaster.internal/ubuntu oracular/main armhf libgcc-s1 armhf 14.1.0-5ubuntu1 [40.8 kB] 230s Get:4 http://ftpmaster.internal/ubuntu oracular/main armhf libdevmapper1.02.1 armhf 2:1.02.196-1ubuntu1 [135 kB] 230s Get:5 http://ftpmaster.internal/ubuntu oracular/main armhf dmsetup armhf 2:1.02.196-1ubuntu1 [81.3 kB] 230s Get:6 http://ftpmaster.internal/ubuntu oracular/main armhf libbpf1 armhf 1:1.4.5-1 [151 kB] 230s Get:7 http://ftpmaster.internal/ubuntu oracular/main armhf libxml2 armhf 2.12.7+dfsg-3 [560 kB] 230s Get:8 http://ftpmaster.internal/ubuntu oracular/main armhf logrotate armhf 3.22.0-1 [51.5 kB] 230s Get:9 http://ftpmaster.internal/ubuntu oracular/main armhf netcat-openbsd armhf 1.226-1.1 [42.2 kB] 230s Get:10 http://ftpmaster.internal/ubuntu oracular/main armhf networkd-dispatcher all 2.2.4-1.1 [15.6 kB] 230s Get:11 http://ftpmaster.internal/ubuntu oracular/main armhf systemd-hwe-hwdb all 256.2.1 [3210 B] 230s Get:12 http://ftpmaster.internal/ubuntu oracular/main armhf udisks2 armhf 2.10.1-9ubuntu1 [277 kB] 230s Get:13 http://ftpmaster.internal/ubuntu oracular/main armhf libudisks2-0 armhf 2.10.1-9ubuntu1 [142 kB] 230s Get:14 http://ftpmaster.internal/ubuntu oracular/main armhf python3-launchpadlib all 2.0.0-1 [126 kB] 230s Get:15 http://ftpmaster.internal/ubuntu oracular/main armhf cloud-init all 24.3~1g6e4153b3-0ubuntu1 [592 kB] 230s Get:16 http://ftpmaster.internal/ubuntu oracular/main armhf gdisk armhf 1.0.10-2 [229 kB] 232s Preconfiguring packages ... 233s Fetched 3209 kB in 1s (4058 kB/s) 233s (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 ... 58436 files and directories currently installed.) 233s Preparing to unpack .../gcc-14-base_14.1.0-5ubuntu1_armhf.deb ... 233s Unpacking gcc-14-base:armhf (14.1.0-5ubuntu1) over (14.1.0-4ubuntu2) ... 233s Setting up gcc-14-base:armhf (14.1.0-5ubuntu1) ... 233s (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 ... 58436 files and directories currently installed.) 233s Preparing to unpack .../libstdc++6_14.1.0-5ubuntu1_armhf.deb ... 233s Unpacking libstdc++6:armhf (14.1.0-5ubuntu1) over (14.1.0-4ubuntu2) ... 233s Setting up libstdc++6:armhf (14.1.0-5ubuntu1) ... 234s (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 ... 58436 files and directories currently installed.) 234s Preparing to unpack .../libgcc-s1_14.1.0-5ubuntu1_armhf.deb ... 234s Unpacking libgcc-s1:armhf (14.1.0-5ubuntu1) over (14.1.0-4ubuntu2) ... 234s Setting up libgcc-s1:armhf (14.1.0-5ubuntu1) ... 234s (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 ... 58436 files and directories currently installed.) 234s Preparing to unpack .../00-libdevmapper1.02.1_2%3a1.02.196-1ubuntu1_armhf.deb ... 234s Unpacking libdevmapper1.02.1:armhf (2:1.02.196-1ubuntu1) over (2:1.02.185-3ubuntu4) ... 234s Preparing to unpack .../01-dmsetup_2%3a1.02.196-1ubuntu1_armhf.deb ... 234s Unpacking dmsetup (2:1.02.196-1ubuntu1) over (2:1.02.185-3ubuntu4) ... 234s Preparing to unpack .../02-libbpf1_1%3a1.4.5-1_armhf.deb ... 234s Unpacking libbpf1:armhf (1:1.4.5-1) over (1:1.4.3-1) ... 234s Preparing to unpack .../03-libxml2_2.12.7+dfsg-3_armhf.deb ... 234s Unpacking libxml2:armhf (2.12.7+dfsg-3) over (2.9.14+dfsg-1.3ubuntu3) ... 234s Preparing to unpack .../04-logrotate_3.22.0-1_armhf.deb ... 234s Unpacking logrotate (3.22.0-1) over (3.21.0-2build1) ... 234s Preparing to unpack .../05-netcat-openbsd_1.226-1.1_armhf.deb ... 234s Unpacking netcat-openbsd (1.226-1.1) over (1.226-1ubuntu2) ... 234s Preparing to unpack .../06-networkd-dispatcher_2.2.4-1.1_all.deb ... 234s Unpacking networkd-dispatcher (2.2.4-1.1) over (2.2.4-1) ... 234s Preparing to unpack .../07-systemd-hwe-hwdb_256.2.1_all.deb ... 234s Unpacking systemd-hwe-hwdb (256.2.1) over (255.1.3) ... 234s Preparing to unpack .../08-udisks2_2.10.1-9ubuntu1_armhf.deb ... 234s Unpacking udisks2 (2.10.1-9ubuntu1) over (2.10.1-9) ... 234s Preparing to unpack .../09-libudisks2-0_2.10.1-9ubuntu1_armhf.deb ... 234s Unpacking libudisks2-0:armhf (2.10.1-9ubuntu1) over (2.10.1-9) ... 235s Preparing to unpack .../10-python3-launchpadlib_2.0.0-1_all.deb ... 235s Unpacking python3-launchpadlib (2.0.0-1) over (1.11.0-6) ... 235s Preparing to unpack .../11-cloud-init_24.3~1g6e4153b3-0ubuntu1_all.deb ... 235s Unpacking cloud-init (24.3~1g6e4153b3-0ubuntu1) over (24.2-0ubuntu1) ... 236s Preparing to unpack .../12-gdisk_1.0.10-2_armhf.deb ... 236s Unpacking gdisk (1.0.10-2) over (1.0.10-1build1) ... 236s Setting up logrotate (3.22.0-1) ... 237s logrotate.service is a disabled or a static unit not running, not starting it. 237s Setting up networkd-dispatcher (2.2.4-1.1) ... 237s Setting up cloud-init (24.3~1g6e4153b3-0ubuntu1) ... 240s Setting up python3-launchpadlib (2.0.0-1) ... 240s Setting up netcat-openbsd (1.226-1.1) ... 240s Setting up gdisk (1.0.10-2) ... 240s Setting up systemd-hwe-hwdb (256.2.1) ... 241s Setting up libdevmapper1.02.1:armhf (2:1.02.196-1ubuntu1) ... 241s Setting up dmsetup (2:1.02.196-1ubuntu1) ... 241s Setting up libxml2:armhf (2.12.7+dfsg-3) ... 241s Setting up libbpf1:armhf (1:1.4.5-1) ... 241s Setting up libudisks2-0:armhf (2.10.1-9ubuntu1) ... 241s Setting up udisks2 (2.10.1-9ubuntu1) ... 241s vda: Failed to write 'change' to '/sys/devices/pci0000:00/0000:00:01.3/0000:04:00.0/virtio2/block/vda/uevent': Permission denied 241s vda1: Failed to write 'change' to '/sys/devices/pci0000:00/0000:00:01.3/0000:04:00.0/virtio2/block/vda/vda1/uevent': Permission denied 241s vda15: Failed to write 'change' to '/sys/devices/pci0000:00/0000:00:01.3/0000:04:00.0/virtio2/block/vda/vda15/uevent': Permission denied 241s vda2: Failed to write 'change' to '/sys/devices/pci0000:00/0000:00:01.3/0000:04:00.0/virtio2/block/vda/vda2/uevent': Permission denied 241s loop0: Failed to write 'change' to '/sys/devices/virtual/block/loop0/uevent': Permission denied 241s loop1: Failed to write 'change' to '/sys/devices/virtual/block/loop1/uevent': Permission denied 241s loop2: Failed to write 'change' to '/sys/devices/virtual/block/loop2/uevent': Permission denied 241s loop3: Failed to write 'change' to '/sys/devices/virtual/block/loop3/uevent': Permission denied 241s loop4: Failed to write 'change' to '/sys/devices/virtual/block/loop4/uevent': Permission denied 241s loop5: Failed to write 'change' to '/sys/devices/virtual/block/loop5/uevent': Permission denied 241s loop6: Failed to write 'change' to '/sys/devices/virtual/block/loop6/uevent': Permission denied 241s loop7: Failed to write 'change' to '/sys/devices/virtual/block/loop7/uevent': Permission denied 244s Processing triggers for libc-bin (2.39-0ubuntu9) ... 246s Processing triggers for rsyslog (8.2312.0-3ubuntu9) ... 248s Processing triggers for man-db (2.12.1-2) ... 249s Processing triggers for dbus (1.14.10-4ubuntu4) ... 249s Processing triggers for udev (256-1ubuntu1) ... 250s Processing triggers for initramfs-tools (0.142ubuntu30) ... 252s Reading package lists... 252s Building dependency tree... 252s Reading state information... 253s The following packages will be REMOVED: 253s python3-six* 259s 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded. 259s After this operation, 59.4 kB disk space will be freed. 259s (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 ... 58436 files and directories currently installed.) 259s Removing python3-six (1.16.0-6) ... 268s autopkgtest [16:38:31]: rebooting testbed after setup commands that affected boot 370s autopkgtest [16:40:13]: 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 412s autopkgtest [16:40:55]: @@@@@@@@@@@@@@@@@@@@ apt-source pandas 438s Get:1 http://ftpmaster.internal/ubuntu oracular/universe pandas 2.1.4+dfsg-8 (dsc) [5116 B] 438s Get:2 http://ftpmaster.internal/ubuntu oracular/universe pandas 2.1.4+dfsg-8 (tar) [11.1 MB] 438s Get:3 http://ftpmaster.internal/ubuntu oracular/universe pandas 2.1.4+dfsg-8 (diff) [78.8 kB] 438s gpgv: Signature made Sun May 5 16:16:36 2024 UTC 438s gpgv: using RSA key 67CB311005C4EDBE32175308DEE50D0D567EA266 438s gpgv: issuer "rebecca_palmer@zoho.com" 438s gpgv: Can't check signature: No public key 438s dpkg-source: warning: cannot verify inline signature for ./pandas_2.1.4+dfsg-8.dsc: no acceptable signature found 440s autopkgtest [16:41:23]: testing package pandas version 2.1.4+dfsg-8 442s autopkgtest [16:41:25]: build not needed 446s autopkgtest [16:41:29]: test command1: preparing testbed 462s Reading package lists... 463s Building dependency tree... 463s Reading state information... 463s Starting pkgProblemResolver with broken count: 0 463s Starting 2 pkgProblemResolver with broken count: 0 463s Done 464s The following additional packages will be installed: 464s libblas3 libgfortran5 liblapack3 python3-dateutil python3-numpy 464s python3-pandas python3-pandas-lib python3-six python3-tz 464s Suggested packages: 464s gcc gfortran python-numpy-doc python3-dev python3-pytest python-pandas-doc 464s python3-statsmodels 464s Recommended packages: 464s python3-scipy python3-matplotlib python3-bottleneck python3-numexpr 464s python3-odf python3-openpyxl python3-bs4 python3-html5lib python3-lxml 464s python3-tables 464s The following NEW packages will be installed: 464s autopkgtest-satdep libblas3 libgfortran5 liblapack3 python3-dateutil 464s python3-numpy python3-pandas python3-pandas-lib python3-six python3-tz 464s 0 upgraded, 10 newly installed, 0 to remove and 1 not upgraded. 464s Need to get 13.7 MB/13.7 MB of archives. 464s After this operation, 58.2 MB of additional disk space will be used. 464s Get:1 /tmp/autopkgtest.7zWmJG/1-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [712 B] 465s Get:2 http://ftpmaster.internal/ubuntu oracular/main armhf libblas3 armhf 3.12.0-3build1 [123 kB] 465s Get:3 http://ftpmaster.internal/ubuntu oracular/main armhf libgfortran5 armhf 14.1.0-5ubuntu1 [311 kB] 465s Get:4 http://ftpmaster.internal/ubuntu oracular/main armhf liblapack3 armhf 3.12.0-3build1 [2085 kB] 465s Get:5 http://ftpmaster.internal/ubuntu oracular/main armhf python3-six all 1.16.0-6 [13.0 kB] 465s Get:6 http://ftpmaster.internal/ubuntu oracular/main armhf python3-dateutil all 2.9.0-2 [80.3 kB] 465s Get:7 http://ftpmaster.internal/ubuntu oracular/main armhf python3-numpy armhf 1:1.26.4+ds-10 [3541 kB] 466s Get:8 http://ftpmaster.internal/ubuntu oracular/main armhf python3-tz all 2024.1-2 [31.4 kB] 466s Get:9 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pandas-lib armhf 2.1.4+dfsg-8 [4461 kB] 466s Get:10 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pandas all 2.1.4+dfsg-8 [3042 kB] 473s Fetched 13.7 MB in 2s (6822 kB/s) 474s Selecting previously unselected package libblas3:armhf. 474s (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.) 474s Preparing to unpack .../0-libblas3_3.12.0-3build1_armhf.deb ... 474s Unpacking libblas3:armhf (3.12.0-3build1) ... 475s Selecting previously unselected package libgfortran5:armhf. 477s Preparing to unpack .../1-libgfortran5_14.1.0-5ubuntu1_armhf.deb ... 477s Unpacking libgfortran5:armhf (14.1.0-5ubuntu1) ... 478s Selecting previously unselected package liblapack3:armhf. 480s Preparing to unpack .../2-liblapack3_3.12.0-3build1_armhf.deb ... 481s Unpacking liblapack3:armhf (3.12.0-3build1) ... 481s Selecting previously unselected package python3-six. 483s Preparing to unpack .../3-python3-six_1.16.0-6_all.deb ... 483s Unpacking python3-six (1.16.0-6) ... 483s Selecting previously unselected package python3-dateutil. 484s Preparing to unpack .../4-python3-dateutil_2.9.0-2_all.deb ... 484s Unpacking python3-dateutil (2.9.0-2) ... 485s Selecting previously unselected package python3-numpy. 486s Preparing to unpack .../5-python3-numpy_1%3a1.26.4+ds-10_armhf.deb ... 486s Unpacking python3-numpy (1:1.26.4+ds-10) ... 488s Selecting previously unselected package python3-tz. 489s Preparing to unpack .../6-python3-tz_2024.1-2_all.deb ... 489s Unpacking python3-tz (2024.1-2) ... 490s Selecting previously unselected package python3-pandas-lib:armhf. 492s Preparing to unpack .../7-python3-pandas-lib_2.1.4+dfsg-8_armhf.deb ... 492s Unpacking python3-pandas-lib:armhf (2.1.4+dfsg-8) ... 493s Selecting previously unselected package python3-pandas. 495s Preparing to unpack .../8-python3-pandas_2.1.4+dfsg-8_all.deb ... 495s Unpacking python3-pandas (2.1.4+dfsg-8) ... 497s Selecting previously unselected package autopkgtest-satdep. 499s Preparing to unpack .../9-1-autopkgtest-satdep.deb ... 499s Unpacking autopkgtest-satdep (0) ... 500s Setting up python3-tz (2024.1-2) ... 501s Setting up python3-six (1.16.0-6) ... 502s Setting up libblas3:armhf (3.12.0-3build1) ... 502s 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 502s Setting up libgfortran5:armhf (14.1.0-5ubuntu1) ... 502s Setting up python3-dateutil (2.9.0-2) ... 503s Setting up liblapack3:armhf (3.12.0-3build1) ... 503s 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 503s Setting up python3-numpy (1:1.26.4+ds-10) ... 507s Setting up python3-pandas-lib:armhf (2.1.4+dfsg-8) ... 507s Setting up python3-pandas (2.1.4+dfsg-8) ... 513s Setting up autopkgtest-satdep (0) ... 513s Processing triggers for man-db (2.12.1-2) ... 514s Processing triggers for libc-bin (2.39-0ubuntu9) ... 532s (Reading database ... 61092 files and directories currently installed.) 532s Removing autopkgtest-satdep (0) ... 542s autopkgtest [16:43:05]: test command1: cd "$AUTOPKGTEST_TMP" && python3 -c "import pandas;a=pandas.DataFrame([[1,2],[3,4]])" 542s autopkgtest [16:43:05]: test command1: [----------------------- 551s autopkgtest [16:43:14]: test command1: -----------------------] 556s autopkgtest [16:43:19]: test command1: - - - - - - - - - - results - - - - - - - - - - 556s command1 PASS 561s autopkgtest [16:43:24]: test unittests3: preparing testbed 578s Reading package lists... 578s Building dependency tree... 578s Reading state information... 578s Starting pkgProblemResolver with broken count: 1 579s Starting 2 pkgProblemResolver with broken count: 1 579s Investigating (0) python3-tk:armhf < none -> 3.12.4-2 @un pumN Ib > 579s Broken python3-tk:armhf Depends on python3:armhf < 3.12.3-0ubuntu1 @ii pmK > (>= 3.12.3-1~) 579s Considering python3:armhf 386 as a solution to python3-tk:armhf 4 579s Broken python3-tk:armhf Depends on blt:armhf < none | 2.5.3+dfsg-7build1 @un uH > (>= 2.4z-9) 579s Considering blt:armhf 0 as a solution to python3-tk:armhf 4 579s Re-Instated libtcl8.6:armhf 579s Re-Instated fontconfig-config:armhf 579s Re-Instated libfontconfig1:armhf 579s Re-Instated libxft2:armhf 579s Re-Instated libxss1:armhf 579s Re-Instated libtk8.6:armhf 579s Re-Instated tk8.6-blt2.5:armhf 579s Re-Instated blt:armhf 579s Done 579s Some packages could not be installed. This may mean that you have 579s requested an impossible situation or if you are using the unstable 579s distribution that some required packages have not yet been created 579s or been moved out of Incoming. 579s The following information may help to resolve the situation: 579s 579s The following packages have unmet dependencies: 579s python3-tk : Depends: python3 (>= 3.12.3-1~) but 3.12.3-0ubuntu1 is to be installed 579s E: Unable to correct problems, you have held broken packages. 580s autopkgtest: WARNING: Test dependencies are unsatisfiable with using apt pinning. Retrying with using all packages from oracular-proposed 592s Reading package lists... 592s Building dependency tree... 592s Reading state information... 593s Starting pkgProblemResolver with broken count: 0 593s Starting 2 pkgProblemResolver with broken count: 0 593s Done 595s The following additional packages will be installed: 595s blt fontconfig-config fonts-dejavu-core fonts-dejavu-mono fonts-lyx libaec0 595s libblosc1 libblosc2-4 libc-bin libc6 libdeflate0 libdrm-amdgpu1 595s libdrm-nouveau2 libdrm-radeon1 libfontconfig1 libfontenc1 libfreetype6 595s libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libgomp1 595s libgraphite2-3 libharfbuzz0b libhdf5-103-1t64 libice6 libimagequant0 595s libjbig0 libjpeg-turbo8 libjpeg8 libjs-jquery libjs-jquery-ui liblbfgsb0 595s liblcms2-2 liblerc4 libllvm17t64 libopenjp2-7 libpixman-1-0 595s libpython3-stdlib libqhull-r8.0 libraqm0 libsharpyuv0 libsm6 libsnappy1v5 595s libsz2 libtcl8.6 libtiff6 libtk8.6 libunwind8 libvulkan1 libwebp7 595s libwebpdemux2 libwebpmux3 libx11-xcb1 libxaw7 libxcb-dri2-0 libxcb-dri3-0 595s libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shm0 libxcb-sync1 595s libxcb-xfixes0 libxfixes3 libxfont2 libxft2 libxkbfile1 libxmu6 libxpm4 595s libxrandr2 libxrender1 libxshmfence1 libxslt1.1 libxss1 libxt6t64 595s libxxf86vm1 locales locales-all python-matplotlib-data python-tables-data 595s python3 python3-all python3-appdirs python3-async-generator 595s python3-bottleneck python3-brotli python3-bs4 python3-click 595s python3-cloudpickle python3-colorama python3-contourpy python3-cpuinfo 595s python3-cycler python3-dask python3-decorator python3-defusedxml 595s python3-et-xmlfile python3-execnet python3-fonttools python3-fs 595s python3-fsspec python3-gdbm python3-greenlet python3-html5lib 595s python3-hypothesis python3-iniconfig python3-kiwisolver python3-locket 595s python3-lxml python3-lz4 python3-matplotlib python3-minimal python3-mpmath 595s python3-numexpr python3-odf python3-openpyxl python3-packaging python3-partd 595s python3-pil python3-pil.imagetk python3-pluggy python3-py python3-pyreadstat 595s python3-pytest python3-pytest-asyncio python3-pytest-forked 595s python3-pytest-localserver python3-pytest-xdist python3-scipy 595s python3-sortedcontainers python3-soupsieve python3-sqlalchemy python3-sympy 595s python3-tables python3-tables-lib python3-tk python3-toolz python3-ufolib2 595s python3-webencodings python3-werkzeug python3-xarray python3-zstandard 595s tk8.6-blt2.5 tzdata-legacy unicode-data x11-common x11-xkb-utils xsel 595s xserver-common xvfb 595s Suggested packages: 595s blt-demo libjs-jquery-ui-docs liblcms2-utils tcl8.6 tk8.6 595s python-bottleneck-doc python-cycler-doc ipython python-dask-doc 595s python3-blosc python3-boto3 python3-distributed python3-graphviz 595s python3-h5py python3-psutil python3-skimage python3-sklearn execnet-doc 595s python-fsspec-doc python-greenlet-dev python-greenlet-doc python3-genshi 595s python-hypothesis-doc python-lxml-doc cm-super-minimal dvipng ffmpeg 595s fonts-staypuft ghostscript gir1.2-gtk-3.0 inkscape ipython3 librsvg2-common 595s python3-cairocffi python3-gi-cairo python3-gobject python3-pyqt5 python3-sip 595s python3-tornado texlive-extra-utils texlive-latex-extra python-mpmath-doc 595s python3-gmpy2 python-openpyxl-doc python-pil-doc subversion python-scipy-doc 595s python-sortedcontainers-doc python-sqlalchemy-doc python3-asyncpg 595s python3-pg8000 python3-psycopg2 python3-psycopg2cffi python3-aiosqlite 595s python3-mariadb-connector python3-mysqldb python3-mysql.connector 595s python3-pyodbc python3-pymssql python3-cx-oracle python3-oracledb 595s texlive-fonts-extra python-sympy-doc python3-netcdf4 python-tables-doc 595s vitables tix python3-tk-dbg python-toolz-doc python-werkzeug-doc 595s python3-watchdog python-xarray-doc python3-cartopy python3-pydap 595s python3-seaborn python-zstandard-doc 595s Recommended packages: 595s libgl1-amber-dri javascript-common mesa-vulkan-drivers | vulkan-icd git 595s python3-distributed python3-dropbox python3-fusepy python3-libarchive-c 595s python3-paramiko python3-pygit2 python3-cssselect python-odf-doc 595s python-odf-tools python3-blosc python3-zmq python3-olefile g++ 595s | c++-compiler python3-sqlalchemy-ext isympy-common python3-pyinotify 595s python3-cftime python3-netcdf4 python3-rasterio python3-h5netcdf 595s python3-zarr xfonts-base 595s The following NEW packages will be installed: 595s autopkgtest-satdep blt fontconfig-config fonts-dejavu-core fonts-dejavu-mono 595s fonts-lyx libaec0 libblosc1 libblosc2-4 libdeflate0 libdrm-amdgpu1 595s libdrm-nouveau2 libdrm-radeon1 libfontconfig1 libfontenc1 libfreetype6 595s libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libgomp1 595s libgraphite2-3 libharfbuzz0b libhdf5-103-1t64 libice6 libimagequant0 595s libjbig0 libjpeg-turbo8 libjpeg8 libjs-jquery libjs-jquery-ui liblbfgsb0 595s liblcms2-2 liblerc4 libllvm17t64 libopenjp2-7 libpixman-1-0 libqhull-r8.0 595s libraqm0 libsharpyuv0 libsm6 libsnappy1v5 libsz2 libtcl8.6 libtiff6 libtk8.6 595s libunwind8 libvulkan1 libwebp7 libwebpdemux2 libwebpmux3 libx11-xcb1 libxaw7 595s libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 595s libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxfixes3 libxfont2 libxft2 595s libxkbfile1 libxmu6 libxpm4 libxrandr2 libxrender1 libxshmfence1 libxslt1.1 595s libxss1 libxt6t64 libxxf86vm1 locales-all python-matplotlib-data 595s python-tables-data python3-all python3-appdirs python3-async-generator 595s python3-bottleneck python3-brotli python3-bs4 python3-click 595s python3-cloudpickle python3-colorama python3-contourpy python3-cpuinfo 595s python3-cycler python3-dask python3-decorator python3-defusedxml 595s python3-et-xmlfile python3-execnet python3-fonttools python3-fs 595s python3-fsspec python3-greenlet python3-html5lib python3-hypothesis 595s python3-iniconfig python3-kiwisolver python3-locket python3-lxml python3-lz4 595s python3-matplotlib python3-mpmath python3-numexpr python3-odf 595s python3-openpyxl python3-packaging python3-partd python3-pil 595s python3-pil.imagetk python3-pluggy python3-py python3-pyreadstat 595s python3-pytest python3-pytest-asyncio python3-pytest-forked 595s python3-pytest-localserver python3-pytest-xdist python3-scipy 595s python3-sortedcontainers python3-soupsieve python3-sqlalchemy python3-sympy 595s python3-tables python3-tables-lib python3-tk python3-toolz python3-ufolib2 595s python3-webencodings python3-werkzeug python3-xarray python3-zstandard 595s tk8.6-blt2.5 tzdata-legacy unicode-data x11-common x11-xkb-utils xsel 595s xserver-common xvfb 595s The following packages will be upgraded: 595s libc-bin libc6 libpython3-stdlib locales python3 python3-gdbm 595s python3-minimal 596s 7 upgraded, 146 newly installed, 0 to remove and 45 not upgraded. 596s Need to get 111 MB/111 MB of archives. 596s After this operation, 618 MB of additional disk space will be used. 596s Get:1 /tmp/autopkgtest.7zWmJG/2-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [1036 B] 602s Get:2 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf libc6 armhf 2.39-3.1ubuntu3 [2825 kB] 603s Get:3 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf libc-bin armhf 2.39-3.1ubuntu3 [527 kB] 603s Get:4 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf python3-minimal armhf 3.12.4-1 [27.1 kB] 603s Get:5 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf python3 armhf 3.12.4-1 [24.0 kB] 603s Get:6 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf libpython3-stdlib armhf 3.12.4-1 [9824 B] 603s Get:7 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf locales all 2.39-3.1ubuntu3 [4220 kB] 603s Get:8 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf python3-gdbm armhf 3.12.4-2 [16.9 kB] 603s Get:9 http://ftpmaster.internal/ubuntu oracular/main armhf libtcl8.6 armhf 8.6.14+dfsg-1build1 [903 kB] 603s Get:10 http://ftpmaster.internal/ubuntu oracular/main armhf libfreetype6 armhf 2.13.2+dfsg-1build3 [331 kB] 603s Get:11 http://ftpmaster.internal/ubuntu oracular/main armhf fonts-dejavu-mono all 2.37-8 [502 kB] 603s Get:12 http://ftpmaster.internal/ubuntu oracular/main armhf fonts-dejavu-core all 2.37-8 [835 kB] 603s Get:13 http://ftpmaster.internal/ubuntu oracular/main armhf fontconfig-config armhf 2.15.0-1.1ubuntu2 [37.4 kB] 603s Get:14 http://ftpmaster.internal/ubuntu oracular/main armhf libfontconfig1 armhf 2.15.0-1.1ubuntu2 [113 kB] 603s Get:15 http://ftpmaster.internal/ubuntu oracular/main armhf libxrender1 armhf 1:0.9.10-1.1build1 [16.0 kB] 603s Get:16 http://ftpmaster.internal/ubuntu oracular/main armhf libxft2 armhf 2.3.6-1build1 [37.4 kB] 603s Get:17 http://ftpmaster.internal/ubuntu oracular/main armhf x11-common all 1:7.7+23ubuntu3 [21.7 kB] 603s Get:18 http://ftpmaster.internal/ubuntu oracular/main armhf libxss1 armhf 1:1.2.3-1build3 [6500 B] 603s Get:19 http://ftpmaster.internal/ubuntu oracular/main armhf libtk8.6 armhf 8.6.14-1build1 [681 kB] 604s Get:20 http://ftpmaster.internal/ubuntu oracular/main armhf tk8.6-blt2.5 armhf 2.5.3+dfsg-7build1 [525 kB] 604s Get:21 http://ftpmaster.internal/ubuntu oracular/main armhf blt armhf 2.5.3+dfsg-7build1 [4840 B] 604s Get:22 http://ftpmaster.internal/ubuntu oracular/universe armhf fonts-lyx all 2.4.1-2 [171 kB] 604s Get:23 http://ftpmaster.internal/ubuntu oracular/universe armhf libaec0 armhf 1.1.3-1 [20.8 kB] 604s Get:24 http://ftpmaster.internal/ubuntu oracular/main armhf libsnappy1v5 armhf 1.2.1-1 [28.4 kB] 604s Get:25 http://ftpmaster.internal/ubuntu oracular/universe armhf libblosc1 armhf 1.21.5+ds-1build1 [23.7 kB] 604s Get:26 http://ftpmaster.internal/ubuntu oracular/universe armhf libblosc2-4 armhf 2.15.0+ds-1 [191 kB] 604s Get:27 http://ftpmaster.internal/ubuntu oracular/main armhf libdeflate0 armhf 1.20-1 [38.3 kB] 604s Get:28 http://ftpmaster.internal/ubuntu oracular/main armhf libdrm-amdgpu1 armhf 2.4.121-2 [18.8 kB] 604s Get:29 http://ftpmaster.internal/ubuntu oracular/main armhf libdrm-nouveau2 armhf 2.4.121-2 [15.2 kB] 604s Get:30 http://ftpmaster.internal/ubuntu oracular/main armhf libdrm-radeon1 armhf 2.4.121-2 [18.2 kB] 604s Get:31 http://ftpmaster.internal/ubuntu oracular/main armhf libfontenc1 armhf 1:1.1.8-1build1 [11.5 kB] 604s Get:32 http://ftpmaster.internal/ubuntu oracular/main armhf libvulkan1 armhf 1.3.283.0-1 [123 kB] 604s Get:33 http://ftpmaster.internal/ubuntu oracular/main armhf libglapi-mesa armhf 24.0.9-0ubuntu2 [47.7 kB] 604s Get:34 http://ftpmaster.internal/ubuntu oracular/main armhf libllvm17t64 armhf 1:17.0.6-12 [25.3 MB] 605s Get:35 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-dri3-0 armhf 1.17.0-2 [7120 B] 605s Get:36 http://ftpmaster.internal/ubuntu oracular/main armhf libgl1-mesa-dri armhf 24.0.9-0ubuntu2 [7200 kB] 606s Get:37 http://ftpmaster.internal/ubuntu oracular/main armhf libx11-xcb1 armhf 2:1.8.7-1build1 [7748 B] 606s Get:38 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-dri2-0 armhf 1.17.0-2 [6868 B] 606s Get:39 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-glx0 armhf 1.17.0-2 [22.6 kB] 606s Get:40 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-present0 armhf 1.17.0-2 [5940 B] 606s Get:41 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-randr0 armhf 1.17.0-2 [17.0 kB] 606s Get:42 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-shm0 armhf 1.17.0-2 [5774 B] 606s Get:43 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-sync1 armhf 1.17.0-2 [8732 B] 606s Get:44 http://ftpmaster.internal/ubuntu oracular/main armhf libxcb-xfixes0 armhf 1.17.0-2 [10.0 kB] 606s Get:45 http://ftpmaster.internal/ubuntu oracular/main armhf libxfixes3 armhf 1:6.0.0-2build1 [9038 B] 606s Get:46 http://ftpmaster.internal/ubuntu oracular/main armhf libxshmfence1 armhf 1.3-1build5 [4464 B] 606s Get:47 http://ftpmaster.internal/ubuntu oracular/main armhf libxxf86vm1 armhf 1:1.1.4-1build4 [8068 B] 606s Get:48 http://ftpmaster.internal/ubuntu oracular/main armhf libglx-mesa0 armhf 24.0.9-0ubuntu2 [131 kB] 606s Get:49 http://ftpmaster.internal/ubuntu oracular/main armhf libgomp1 armhf 14.1.0-5ubuntu1 [125 kB] 606s Get:50 http://ftpmaster.internal/ubuntu oracular/main armhf libgraphite2-3 armhf 1.3.14-2ubuntu1 [64.8 kB] 606s Get:51 http://ftpmaster.internal/ubuntu oracular/main armhf libharfbuzz0b armhf 8.3.0-2build2 [446 kB] 606s Get:52 http://ftpmaster.internal/ubuntu oracular/universe armhf libsz2 armhf 1.1.3-1 [5302 B] 606s Get:53 http://ftpmaster.internal/ubuntu oracular/universe armhf libhdf5-103-1t64 armhf 1.10.10+repack-3.1ubuntu4 [1337 kB] 606s Get:54 http://ftpmaster.internal/ubuntu oracular/main armhf libice6 armhf 2:1.0.10-1build3 [35.4 kB] 606s Get:55 http://ftpmaster.internal/ubuntu oracular/main armhf libimagequant0 armhf 2.18.0-1build1 [31.1 kB] 606s Get:56 http://ftpmaster.internal/ubuntu oracular/main armhf libjpeg-turbo8 armhf 2.1.5-2ubuntu2 [125 kB] 606s Get:57 http://ftpmaster.internal/ubuntu oracular/main armhf libjpeg8 armhf 8c-2ubuntu11 [2148 B] 606s Get:58 http://ftpmaster.internal/ubuntu oracular/main armhf libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 606s Get:59 http://ftpmaster.internal/ubuntu oracular/universe armhf libjs-jquery-ui all 1.13.2+dfsg-1 [252 kB] 606s Get:60 http://ftpmaster.internal/ubuntu oracular/universe armhf liblbfgsb0 armhf 3.0+dfsg.4-1build1 [27.4 kB] 606s Get:61 http://ftpmaster.internal/ubuntu oracular/main armhf liblcms2-2 armhf 2.14-2build1 [132 kB] 606s Get:62 http://ftpmaster.internal/ubuntu oracular/main armhf liblerc4 armhf 4.0.0+ds-4ubuntu2 [151 kB] 606s Get:63 http://ftpmaster.internal/ubuntu oracular/main armhf libpixman-1-0 armhf 0.42.2-1build1 [193 kB] 606s Get:64 http://ftpmaster.internal/ubuntu oracular/universe armhf libqhull-r8.0 armhf 2020.2-6build1 [173 kB] 606s Get:65 http://ftpmaster.internal/ubuntu oracular/main armhf libraqm0 armhf 0.10.1-1build1 [12.4 kB] 606s Get:66 http://ftpmaster.internal/ubuntu oracular/main armhf libsharpyuv0 armhf 1.4.0-0.1 [16.3 kB] 606s Get:67 http://ftpmaster.internal/ubuntu oracular/main armhf libsm6 armhf 2:1.2.3-1build3 [14.1 kB] 606s Get:68 http://ftpmaster.internal/ubuntu oracular/main armhf libjbig0 armhf 2.1-6.1ubuntu2 [24.9 kB] 606s Get:69 http://ftpmaster.internal/ubuntu oracular/main armhf libwebp7 armhf 1.4.0-0.1 [184 kB] 606s Get:70 http://ftpmaster.internal/ubuntu oracular/main armhf libtiff6 armhf 4.5.1+git230720-4ubuntu3 [178 kB] 606s Get:71 http://ftpmaster.internal/ubuntu oracular/main armhf libunwind8 armhf 1.6.2-3.1 [47.6 kB] 606s Get:72 http://ftpmaster.internal/ubuntu oracular/main armhf libwebpdemux2 armhf 1.4.0-0.1 [11.8 kB] 606s Get:73 http://ftpmaster.internal/ubuntu oracular/main armhf libwebpmux3 armhf 1.4.0-0.1 [22.5 kB] 606s Get:74 http://ftpmaster.internal/ubuntu oracular/main armhf libxt6t64 armhf 1:1.2.1-1.2build1 [145 kB] 606s Get:75 http://ftpmaster.internal/ubuntu oracular/main armhf libxmu6 armhf 2:1.1.3-3build2 [40.4 kB] 606s Get:76 http://ftpmaster.internal/ubuntu oracular/main armhf libxpm4 armhf 1:3.5.17-1build2 [30.1 kB] 606s Get:77 http://ftpmaster.internal/ubuntu oracular/main armhf libxaw7 armhf 2:1.0.14-1build2 [153 kB] 606s Get:78 http://ftpmaster.internal/ubuntu oracular/main armhf libxfont2 armhf 1:2.0.6-1build1 [80.3 kB] 606s Get:79 http://ftpmaster.internal/ubuntu oracular/main armhf libxkbfile1 armhf 1:1.1.0-1build4 [60.0 kB] 606s Get:80 http://ftpmaster.internal/ubuntu oracular/main armhf libxrandr2 armhf 2:1.5.4-1 [15.8 kB] 606s Get:81 http://ftpmaster.internal/ubuntu oracular/main armhf libxslt1.1 armhf 1.1.39-0exp1build1 [150 kB] 606s Get:82 http://ftpmaster.internal/ubuntu oracular/universe armhf python-matplotlib-data all 3.6.3-2ubuntu1 [2937 kB] 606s Get:83 http://ftpmaster.internal/ubuntu oracular/universe armhf python-tables-data all 3.9.2-2build2 [49.4 kB] 606s Get:84 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf python3-all armhf 3.12.4-1 [882 B] 606s Get:85 http://ftpmaster.internal/ubuntu oracular/main armhf python3-appdirs all 1.4.4-4 [10.9 kB] 606s Get:86 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-async-generator all 1.10-4 [17.5 kB] 606s Get:87 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-bottleneck armhf 1.3.8+ds1-1 [87.6 kB] 606s Get:88 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-brotli armhf 1.1.0-2build2 [321 kB] 606s Get:89 http://ftpmaster.internal/ubuntu oracular/main armhf python3-soupsieve all 2.5-1 [33.0 kB] 606s Get:90 http://ftpmaster.internal/ubuntu oracular/main armhf python3-bs4 all 4.12.3-1 [109 kB] 606s Get:91 http://ftpmaster.internal/ubuntu oracular/main armhf python3-colorama all 0.4.6-4 [32.1 kB] 606s Get:92 http://ftpmaster.internal/ubuntu oracular/main armhf python3-click all 8.1.7-1 [79.1 kB] 606s Get:93 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-cloudpickle all 3.0.0-2 [21.5 kB] 606s Get:94 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-contourpy armhf 1.0.7-3 [171 kB] 606s Get:95 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-cpuinfo all 9.0.0+git20221119-1 [21.4 kB] 606s Get:96 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-cycler all 0.12.1-1 [9716 B] 606s Get:97 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-fsspec all 2024.6.0-1 [202 kB] 606s Get:98 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-toolz all 0.12.1-1 [44.7 kB] 606s Get:99 http://ftpmaster.internal/ubuntu oracular/main armhf python3-packaging all 24.1-1 [41.4 kB] 606s Get:100 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-locket all 1.0.0-2 [5872 B] 606s Get:101 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-partd all 1.4.2-1 [15.7 kB] 606s Get:102 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-dask all 2024.5.2+dfsg-1 [849 kB] 607s Get:103 http://ftpmaster.internal/ubuntu oracular/main armhf python3-decorator all 5.1.1-5 [10.1 kB] 607s Get:104 http://ftpmaster.internal/ubuntu oracular/main armhf python3-defusedxml all 0.7.1-2 [42.0 kB] 607s Get:105 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-et-xmlfile all 1.0.1-2.1 [9224 B] 607s Get:106 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-execnet all 2.1.1-1 [33.4 kB] 607s Get:107 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-scipy armhf 1.12.0-2 [16.1 MB] 608s Get:108 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-ufolib2 all 0.16.0+dfsg1-1 [33.5 kB] 608s Get:109 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-mpmath all 1.3.0-1 [425 kB] 608s Get:110 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-sympy all 1.12.1-1 [3967 kB] 608s Get:111 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-fs all 2.4.16-4 [91.3 kB] 608s Get:112 http://ftpmaster.internal/ubuntu oracular/main armhf python3-lxml armhf 5.2.2-1 [1199 kB] 608s Get:113 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-lz4 armhf 4.0.2+dfsg-1build4 [24.8 kB] 608s Get:114 http://ftpmaster.internal/ubuntu oracular/universe armhf unicode-data all 15.1.0-1 [8878 kB] 608s Get:115 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-fonttools armhf 4.46.0-1build2 [1402 kB] 608s Get:116 http://ftpmaster.internal/ubuntu oracular/main armhf python3-webencodings all 0.5.1-5 [11.5 kB] 608s Get:117 http://ftpmaster.internal/ubuntu oracular/main armhf python3-html5lib all 1.1-6 [88.8 kB] 608s Get:118 http://ftpmaster.internal/ubuntu oracular/main armhf python3-sortedcontainers all 2.4.0-2 [27.6 kB] 608s Get:119 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-hypothesis all 6.105.1-1 [321 kB] 608s Get:120 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-iniconfig all 1.1.1-2 [6024 B] 608s Get:121 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-kiwisolver armhf 1.4.5-1 [56.3 kB] 608s Get:122 http://ftpmaster.internal/ubuntu oracular/main armhf libopenjp2-7 armhf 2.5.0-2build3 [160 kB] 608s Get:123 http://ftpmaster.internal/ubuntu oracular/main armhf python3-pil armhf 10.4.0-1 [427 kB] 608s Get:124 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf python3-tk armhf 3.12.4-2 [110 kB] 608s Get:125 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pil.imagetk armhf 10.4.0-1 [8696 B] 608s Get:126 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-matplotlib armhf 3.6.3-2ubuntu1 [5964 kB] 608s Get:127 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-numexpr armhf 2.10.1-2 [115 kB] 608s Get:128 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-odf all 1.4.2-2 [78.7 kB] 608s Get:129 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-openpyxl all 3.1.2+dfsg-7 [152 kB] 608s Get:130 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pluggy all 1.5.0-1 [21.0 kB] 608s Get:131 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-py all 1.11.0-2 [72.7 kB] 608s Get:132 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pyreadstat armhf 1.2.6-1build1 [328 kB] 608s Get:133 http://ftpmaster.internal/ubuntu oracular-proposed/universe armhf python3-pytest all 8.2.2-1ubuntu1 [250 kB] 608s Get:134 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pytest-asyncio all 0.20.3-1.3 [10.7 kB] 608s Get:135 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pytest-forked all 1.6.0-2 [7382 B] 608s Get:136 http://ftpmaster.internal/ubuntu oracular/main armhf python3-werkzeug all 3.0.3-1 [170 kB] 608s Get:137 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pytest-localserver all 0.8.1-2 [22.9 kB] 608s Get:138 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-pytest-xdist all 3.6.1-1 [33.8 kB] 608s Get:139 http://ftpmaster.internal/ubuntu oracular/main armhf python3-greenlet armhf 3.0.3-0ubuntu5 [153 kB] 608s Get:140 http://ftpmaster.internal/ubuntu oracular-proposed/main armhf python3-sqlalchemy all 2.0.31+ds1-1 [1202 kB] 608s Get:141 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-tables-lib armhf 3.9.2-2build2 [500 kB] 608s Get:142 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-tables all 3.9.2-2build2 [344 kB] 608s Get:143 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-xarray all 2024.03.0-1 [744 kB] 609s Get:144 http://ftpmaster.internal/ubuntu oracular/universe armhf python3-zstandard armhf 0.23.0-2 [324 kB] 609s Get:145 http://ftpmaster.internal/ubuntu oracular/main armhf tzdata-legacy all 2024a-4ubuntu1 [94.7 kB] 609s Get:146 http://ftpmaster.internal/ubuntu oracular/main armhf x11-xkb-utils armhf 7.7+8build2 [159 kB] 609s Get:147 http://ftpmaster.internal/ubuntu oracular/universe armhf xsel armhf 1.2.1-1 [19.1 kB] 609s Get:148 http://ftpmaster.internal/ubuntu oracular/main armhf xserver-common all 2:21.1.12-1ubuntu1 [33.3 kB] 609s Get:149 http://ftpmaster.internal/ubuntu oracular/main armhf libglvnd0 armhf 1.7.0-1build1 [83.7 kB] 609s Get:150 http://ftpmaster.internal/ubuntu oracular/main armhf libglx0 armhf 1.7.0-1build1 [39.3 kB] 609s Get:151 http://ftpmaster.internal/ubuntu oracular/main armhf libgl1 armhf 1.7.0-1build1 [105 kB] 609s Get:152 http://ftpmaster.internal/ubuntu oracular/universe armhf xvfb armhf 2:21.1.12-1ubuntu1 [739 kB] 609s Get:153 http://ftpmaster.internal/ubuntu oracular-proposed/universe armhf locales-all armhf 2.39-3.1ubuntu3 [10.9 MB] 614s Preconfiguring packages ... 615s Fetched 111 MB in 14s (7975 kB/s) 615s (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 ... 61092 files and directories currently installed.) 615s Preparing to unpack .../libc6_2.39-3.1ubuntu3_armhf.deb ... 616s Unpacking libc6:armhf (2.39-3.1ubuntu3) over (2.39-0ubuntu9) ... 616s Setting up libc6:armhf (2.39-3.1ubuntu3) ... 616s Error: Could not restart systemd, systemd binary not working 617s (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 ... 61092 files and directories currently installed.) 617s Preparing to unpack .../libc-bin_2.39-3.1ubuntu3_armhf.deb ... 617s Unpacking libc-bin (2.39-3.1ubuntu3) over (2.39-0ubuntu9) ... 618s Setting up libc-bin (2.39-3.1ubuntu3) ... 619s (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 ... 61092 files and directories currently installed.) 619s Preparing to unpack .../python3-minimal_3.12.4-1_armhf.deb ... 619s Unpacking python3-minimal (3.12.4-1) over (3.12.3-0ubuntu1) ... 620s Setting up python3-minimal (3.12.4-1) ... 621s (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 ... 61092 files and directories currently installed.) 621s Preparing to unpack .../000-python3_3.12.4-1_armhf.deb ... 622s Unpacking python3 (3.12.4-1) over (3.12.3-0ubuntu1) ... 624s Preparing to unpack .../001-libpython3-stdlib_3.12.4-1_armhf.deb ... 624s Unpacking libpython3-stdlib:armhf (3.12.4-1) over (3.12.3-0ubuntu1) ... 626s Preparing to unpack .../002-locales_2.39-3.1ubuntu3_all.deb ... 626s Unpacking locales (2.39-3.1ubuntu3) over (2.39-0ubuntu9) ... 629s Preparing to unpack .../003-python3-gdbm_3.12.4-2_armhf.deb ... 629s Unpacking python3-gdbm:armhf (3.12.4-2) over (3.12.3-0ubuntu1) ... 629s Selecting previously unselected package libtcl8.6:armhf. 632s Preparing to unpack .../004-libtcl8.6_8.6.14+dfsg-1build1_armhf.deb ... 632s Unpacking libtcl8.6:armhf (8.6.14+dfsg-1build1) ... 633s Selecting previously unselected package libfreetype6:armhf. 636s Preparing to unpack .../005-libfreetype6_2.13.2+dfsg-1build3_armhf.deb ... 636s Unpacking libfreetype6:armhf (2.13.2+dfsg-1build3) ... 637s Selecting previously unselected package fonts-dejavu-mono. 639s Preparing to unpack .../006-fonts-dejavu-mono_2.37-8_all.deb ... 639s Unpacking fonts-dejavu-mono (2.37-8) ... 640s Selecting previously unselected package fonts-dejavu-core. 641s Preparing to unpack .../007-fonts-dejavu-core_2.37-8_all.deb ... 641s Unpacking fonts-dejavu-core (2.37-8) ... 642s Selecting previously unselected package fontconfig-config. 643s Preparing to unpack .../008-fontconfig-config_2.15.0-1.1ubuntu2_armhf.deb ... 649s Unpacking fontconfig-config (2.15.0-1.1ubuntu2) ... 650s Selecting previously unselected package libfontconfig1:armhf. 652s Preparing to unpack .../009-libfontconfig1_2.15.0-1.1ubuntu2_armhf.deb ... 652s Unpacking libfontconfig1:armhf (2.15.0-1.1ubuntu2) ... 652s Selecting previously unselected package libxrender1:armhf. 653s Preparing to unpack .../010-libxrender1_1%3a0.9.10-1.1build1_armhf.deb ... 653s Unpacking libxrender1:armhf (1:0.9.10-1.1build1) ... 653s Selecting previously unselected package libxft2:armhf. 654s Preparing to unpack .../011-libxft2_2.3.6-1build1_armhf.deb ... 654s Unpacking libxft2:armhf (2.3.6-1build1) ... 655s Selecting previously unselected package x11-common. 656s Preparing to unpack .../012-x11-common_1%3a7.7+23ubuntu3_all.deb ... 656s Unpacking x11-common (1:7.7+23ubuntu3) ... 656s Selecting previously unselected package libxss1:armhf. 656s Preparing to unpack .../013-libxss1_1%3a1.2.3-1build3_armhf.deb ... 656s Unpacking libxss1:armhf (1:1.2.3-1build3) ... 656s Selecting previously unselected package libtk8.6:armhf. 657s Preparing to unpack .../014-libtk8.6_8.6.14-1build1_armhf.deb ... 657s Unpacking libtk8.6:armhf (8.6.14-1build1) ... 657s Selecting previously unselected package tk8.6-blt2.5. 657s Preparing to unpack .../015-tk8.6-blt2.5_2.5.3+dfsg-7build1_armhf.deb ... 657s Unpacking tk8.6-blt2.5 (2.5.3+dfsg-7build1) ... 657s Selecting previously unselected package blt. 659s Preparing to unpack .../016-blt_2.5.3+dfsg-7build1_armhf.deb ... 659s Unpacking blt (2.5.3+dfsg-7build1) ... 659s Selecting previously unselected package fonts-lyx. 662s Preparing to unpack .../017-fonts-lyx_2.4.1-2_all.deb ... 662s Unpacking fonts-lyx (2.4.1-2) ... 662s Selecting previously unselected package libaec0:armhf. 663s Preparing to unpack .../018-libaec0_1.1.3-1_armhf.deb ... 663s Unpacking libaec0:armhf (1.1.3-1) ... 664s Selecting previously unselected package libsnappy1v5:armhf. 665s Preparing to unpack .../019-libsnappy1v5_1.2.1-1_armhf.deb ... 665s Unpacking libsnappy1v5:armhf (1.2.1-1) ... 665s Selecting previously unselected package libblosc1:armhf. 665s Preparing to unpack .../020-libblosc1_1.21.5+ds-1build1_armhf.deb ... 665s Unpacking libblosc1:armhf (1.21.5+ds-1build1) ... 666s Selecting previously unselected package libblosc2-4:armhf. 667s Preparing to unpack .../021-libblosc2-4_2.15.0+ds-1_armhf.deb ... 667s Unpacking libblosc2-4:armhf (2.15.0+ds-1) ... 668s Selecting previously unselected package libdeflate0:armhf. 668s Preparing to unpack .../022-libdeflate0_1.20-1_armhf.deb ... 668s Unpacking libdeflate0:armhf (1.20-1) ... 668s Selecting previously unselected package libdrm-amdgpu1:armhf. 669s Preparing to unpack .../023-libdrm-amdgpu1_2.4.121-2_armhf.deb ... 669s Unpacking libdrm-amdgpu1:armhf (2.4.121-2) ... 669s Selecting previously unselected package libdrm-nouveau2:armhf. 670s Preparing to unpack .../024-libdrm-nouveau2_2.4.121-2_armhf.deb ... 670s Unpacking libdrm-nouveau2:armhf (2.4.121-2) ... 670s Selecting previously unselected package libdrm-radeon1:armhf. 672s Preparing to unpack .../025-libdrm-radeon1_2.4.121-2_armhf.deb ... 672s Unpacking libdrm-radeon1:armhf (2.4.121-2) ... 672s Selecting previously unselected package libfontenc1:armhf. 673s Preparing to unpack .../026-libfontenc1_1%3a1.1.8-1build1_armhf.deb ... 673s Unpacking libfontenc1:armhf (1:1.1.8-1build1) ... 674s Selecting previously unselected package libvulkan1:armhf. 675s Preparing to unpack .../027-libvulkan1_1.3.283.0-1_armhf.deb ... 675s Unpacking libvulkan1:armhf (1.3.283.0-1) ... 676s Selecting previously unselected package libglapi-mesa:armhf. 677s Preparing to unpack .../028-libglapi-mesa_24.0.9-0ubuntu2_armhf.deb ... 677s Unpacking libglapi-mesa:armhf (24.0.9-0ubuntu2) ... 677s Selecting previously unselected package libllvm17t64:armhf. 679s Preparing to unpack .../029-libllvm17t64_1%3a17.0.6-12_armhf.deb ... 679s Unpacking libllvm17t64:armhf (1:17.0.6-12) ... 680s Selecting previously unselected package libxcb-dri3-0:armhf. 681s Preparing to unpack .../030-libxcb-dri3-0_1.17.0-2_armhf.deb ... 681s Unpacking libxcb-dri3-0:armhf (1.17.0-2) ... 681s Selecting previously unselected package libgl1-mesa-dri:armhf. 683s Preparing to unpack .../031-libgl1-mesa-dri_24.0.9-0ubuntu2_armhf.deb ... 684s Unpacking libgl1-mesa-dri:armhf (24.0.9-0ubuntu2) ... 684s Selecting previously unselected package libx11-xcb1:armhf. 686s Preparing to unpack .../032-libx11-xcb1_2%3a1.8.7-1build1_armhf.deb ... 686s Unpacking libx11-xcb1:armhf (2:1.8.7-1build1) ... 686s Selecting previously unselected package libxcb-dri2-0:armhf. 687s Preparing to unpack .../033-libxcb-dri2-0_1.17.0-2_armhf.deb ... 687s Unpacking libxcb-dri2-0:armhf (1.17.0-2) ... 688s Selecting previously unselected package libxcb-glx0:armhf. 688s Preparing to unpack .../034-libxcb-glx0_1.17.0-2_armhf.deb ... 688s Unpacking libxcb-glx0:armhf (1.17.0-2) ... 688s Selecting previously unselected package libxcb-present0:armhf. 689s Preparing to unpack .../035-libxcb-present0_1.17.0-2_armhf.deb ... 689s Unpacking libxcb-present0:armhf (1.17.0-2) ... 689s Selecting previously unselected package libxcb-randr0:armhf. 689s Preparing to unpack .../036-libxcb-randr0_1.17.0-2_armhf.deb ... 689s Unpacking libxcb-randr0:armhf (1.17.0-2) ... 690s Selecting previously unselected package libxcb-shm0:armhf. 690s Preparing to unpack .../037-libxcb-shm0_1.17.0-2_armhf.deb ... 690s Unpacking libxcb-shm0:armhf (1.17.0-2) ... 690s Selecting previously unselected package libxcb-sync1:armhf. 690s Preparing to unpack .../038-libxcb-sync1_1.17.0-2_armhf.deb ... 690s Unpacking libxcb-sync1:armhf (1.17.0-2) ... 690s Selecting previously unselected package libxcb-xfixes0:armhf. 691s Preparing to unpack .../039-libxcb-xfixes0_1.17.0-2_armhf.deb ... 691s Unpacking libxcb-xfixes0:armhf (1.17.0-2) ... 691s Selecting previously unselected package libxfixes3:armhf. 691s Preparing to unpack .../040-libxfixes3_1%3a6.0.0-2build1_armhf.deb ... 691s Unpacking libxfixes3:armhf (1:6.0.0-2build1) ... 691s Selecting previously unselected package libxshmfence1:armhf. 691s Preparing to unpack .../041-libxshmfence1_1.3-1build5_armhf.deb ... 691s Unpacking libxshmfence1:armhf (1.3-1build5) ... 691s Selecting previously unselected package libxxf86vm1:armhf. 692s Preparing to unpack .../042-libxxf86vm1_1%3a1.1.4-1build4_armhf.deb ... 692s Unpacking libxxf86vm1:armhf (1:1.1.4-1build4) ... 692s Selecting previously unselected package libglx-mesa0:armhf. 692s Preparing to unpack .../043-libglx-mesa0_24.0.9-0ubuntu2_armhf.deb ... 692s Unpacking libglx-mesa0:armhf (24.0.9-0ubuntu2) ... 692s Selecting previously unselected package libgomp1:armhf. 692s Preparing to unpack .../044-libgomp1_14.1.0-5ubuntu1_armhf.deb ... 692s Unpacking libgomp1:armhf (14.1.0-5ubuntu1) ... 692s Selecting previously unselected package libgraphite2-3:armhf. 692s Preparing to unpack .../045-libgraphite2-3_1.3.14-2ubuntu1_armhf.deb ... 692s Unpacking libgraphite2-3:armhf (1.3.14-2ubuntu1) ... 692s Selecting previously unselected package libharfbuzz0b:armhf. 692s Preparing to unpack .../046-libharfbuzz0b_8.3.0-2build2_armhf.deb ... 692s Unpacking libharfbuzz0b:armhf (8.3.0-2build2) ... 692s Selecting previously unselected package libsz2:armhf. 693s Preparing to unpack .../047-libsz2_1.1.3-1_armhf.deb ... 693s Unpacking libsz2:armhf (1.1.3-1) ... 693s Selecting previously unselected package libhdf5-103-1t64:armhf. 693s Preparing to unpack .../048-libhdf5-103-1t64_1.10.10+repack-3.1ubuntu4_armhf.deb ... 693s Unpacking libhdf5-103-1t64:armhf (1.10.10+repack-3.1ubuntu4) ... 693s Selecting previously unselected package libice6:armhf. 693s Preparing to unpack .../049-libice6_2%3a1.0.10-1build3_armhf.deb ... 693s Unpacking libice6:armhf (2:1.0.10-1build3) ... 693s Selecting previously unselected package libimagequant0:armhf. 693s Preparing to unpack .../050-libimagequant0_2.18.0-1build1_armhf.deb ... 693s Unpacking libimagequant0:armhf (2.18.0-1build1) ... 693s Selecting previously unselected package libjpeg-turbo8:armhf. 694s Preparing to unpack .../051-libjpeg-turbo8_2.1.5-2ubuntu2_armhf.deb ... 694s Unpacking libjpeg-turbo8:armhf (2.1.5-2ubuntu2) ... 694s Selecting previously unselected package libjpeg8:armhf. 694s Preparing to unpack .../052-libjpeg8_8c-2ubuntu11_armhf.deb ... 694s Unpacking libjpeg8:armhf (8c-2ubuntu11) ... 694s Selecting previously unselected package libjs-jquery. 694s Preparing to unpack .../053-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 694s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 694s Selecting previously unselected package libjs-jquery-ui. 694s Preparing to unpack .../054-libjs-jquery-ui_1.13.2+dfsg-1_all.deb ... 694s Unpacking libjs-jquery-ui (1.13.2+dfsg-1) ... 695s Selecting previously unselected package liblbfgsb0:armhf. 695s Preparing to unpack .../055-liblbfgsb0_3.0+dfsg.4-1build1_armhf.deb ... 695s Unpacking liblbfgsb0:armhf (3.0+dfsg.4-1build1) ... 695s Selecting previously unselected package liblcms2-2:armhf. 695s Preparing to unpack .../056-liblcms2-2_2.14-2build1_armhf.deb ... 695s Unpacking liblcms2-2:armhf (2.14-2build1) ... 695s Selecting previously unselected package liblerc4:armhf. 695s Preparing to unpack .../057-liblerc4_4.0.0+ds-4ubuntu2_armhf.deb ... 695s Unpacking liblerc4:armhf (4.0.0+ds-4ubuntu2) ... 695s Selecting previously unselected package libpixman-1-0:armhf. 695s Preparing to unpack .../058-libpixman-1-0_0.42.2-1build1_armhf.deb ... 695s Unpacking libpixman-1-0:armhf (0.42.2-1build1) ... 695s Selecting previously unselected package libqhull-r8.0:armhf. 696s Preparing to unpack .../059-libqhull-r8.0_2020.2-6build1_armhf.deb ... 696s Unpacking libqhull-r8.0:armhf (2020.2-6build1) ... 696s Selecting previously unselected package libraqm0:armhf. 696s Preparing to unpack .../060-libraqm0_0.10.1-1build1_armhf.deb ... 696s Unpacking libraqm0:armhf (0.10.1-1build1) ... 696s Selecting previously unselected package libsharpyuv0:armhf. 696s Preparing to unpack .../061-libsharpyuv0_1.4.0-0.1_armhf.deb ... 696s Unpacking libsharpyuv0:armhf (1.4.0-0.1) ... 696s Selecting previously unselected package libsm6:armhf. 696s Preparing to unpack .../062-libsm6_2%3a1.2.3-1build3_armhf.deb ... 696s Unpacking libsm6:armhf (2:1.2.3-1build3) ... 696s Selecting previously unselected package libjbig0:armhf. 697s Preparing to unpack .../063-libjbig0_2.1-6.1ubuntu2_armhf.deb ... 697s Unpacking libjbig0:armhf (2.1-6.1ubuntu2) ... 697s Selecting previously unselected package libwebp7:armhf. 697s Preparing to unpack .../064-libwebp7_1.4.0-0.1_armhf.deb ... 697s Unpacking libwebp7:armhf (1.4.0-0.1) ... 697s Selecting previously unselected package libtiff6:armhf. 697s Preparing to unpack .../065-libtiff6_4.5.1+git230720-4ubuntu3_armhf.deb ... 697s Unpacking libtiff6:armhf (4.5.1+git230720-4ubuntu3) ... 697s Selecting previously unselected package libunwind8:armhf. 698s Preparing to unpack .../066-libunwind8_1.6.2-3.1_armhf.deb ... 698s Unpacking libunwind8:armhf (1.6.2-3.1) ... 698s Selecting previously unselected package libwebpdemux2:armhf. 698s Preparing to unpack .../067-libwebpdemux2_1.4.0-0.1_armhf.deb ... 698s Unpacking libwebpdemux2:armhf (1.4.0-0.1) ... 698s Selecting previously unselected package libwebpmux3:armhf. 698s Preparing to unpack .../068-libwebpmux3_1.4.0-0.1_armhf.deb ... 698s Unpacking libwebpmux3:armhf (1.4.0-0.1) ... 699s Selecting previously unselected package libxt6t64:armhf. 699s Preparing to unpack .../069-libxt6t64_1%3a1.2.1-1.2build1_armhf.deb ... 699s Unpacking libxt6t64:armhf (1:1.2.1-1.2build1) ... 699s Selecting previously unselected package libxmu6:armhf. 699s Preparing to unpack .../070-libxmu6_2%3a1.1.3-3build2_armhf.deb ... 699s Unpacking libxmu6:armhf (2:1.1.3-3build2) ... 699s Selecting previously unselected package libxpm4:armhf. 699s Preparing to unpack .../071-libxpm4_1%3a3.5.17-1build2_armhf.deb ... 699s Unpacking libxpm4:armhf (1:3.5.17-1build2) ... 699s Selecting previously unselected package libxaw7:armhf. 699s Preparing to unpack .../072-libxaw7_2%3a1.0.14-1build2_armhf.deb ... 699s Unpacking libxaw7:armhf (2:1.0.14-1build2) ... 699s Selecting previously unselected package libxfont2:armhf. 700s Preparing to unpack .../073-libxfont2_1%3a2.0.6-1build1_armhf.deb ... 700s Unpacking libxfont2:armhf (1:2.0.6-1build1) ... 700s Selecting previously unselected package libxkbfile1:armhf. 700s Preparing to unpack .../074-libxkbfile1_1%3a1.1.0-1build4_armhf.deb ... 700s Unpacking libxkbfile1:armhf (1:1.1.0-1build4) ... 700s Selecting previously unselected package libxrandr2:armhf. 700s Preparing to unpack .../075-libxrandr2_2%3a1.5.4-1_armhf.deb ... 700s Unpacking libxrandr2:armhf (2:1.5.4-1) ... 700s Selecting previously unselected package libxslt1.1:armhf. 700s Preparing to unpack .../076-libxslt1.1_1.1.39-0exp1build1_armhf.deb ... 700s Unpacking libxslt1.1:armhf (1.1.39-0exp1build1) ... 700s Selecting previously unselected package python-matplotlib-data. 700s Preparing to unpack .../077-python-matplotlib-data_3.6.3-2ubuntu1_all.deb ... 700s Unpacking python-matplotlib-data (3.6.3-2ubuntu1) ... 700s Selecting previously unselected package python-tables-data. 701s Preparing to unpack .../078-python-tables-data_3.9.2-2build2_all.deb ... 701s Unpacking python-tables-data (3.9.2-2build2) ... 701s Selecting previously unselected package python3-all. 701s Preparing to unpack .../079-python3-all_3.12.4-1_armhf.deb ... 701s Unpacking python3-all (3.12.4-1) ... 701s Selecting previously unselected package python3-appdirs. 701s Preparing to unpack .../080-python3-appdirs_1.4.4-4_all.deb ... 701s Unpacking python3-appdirs (1.4.4-4) ... 701s Selecting previously unselected package python3-async-generator. 701s Preparing to unpack .../081-python3-async-generator_1.10-4_all.deb ... 701s Unpacking python3-async-generator (1.10-4) ... 701s Selecting previously unselected package python3-bottleneck. 701s Preparing to unpack .../082-python3-bottleneck_1.3.8+ds1-1_armhf.deb ... 701s Unpacking python3-bottleneck (1.3.8+ds1-1) ... 701s Selecting previously unselected package python3-brotli. 701s Preparing to unpack .../083-python3-brotli_1.1.0-2build2_armhf.deb ... 701s Unpacking python3-brotli (1.1.0-2build2) ... 701s Selecting previously unselected package python3-soupsieve. 701s Preparing to unpack .../084-python3-soupsieve_2.5-1_all.deb ... 701s Unpacking python3-soupsieve (2.5-1) ... 701s Selecting previously unselected package python3-bs4. 701s Preparing to unpack .../085-python3-bs4_4.12.3-1_all.deb ... 701s Unpacking python3-bs4 (4.12.3-1) ... 701s Selecting previously unselected package python3-colorama. 702s Preparing to unpack .../086-python3-colorama_0.4.6-4_all.deb ... 702s Unpacking python3-colorama (0.4.6-4) ... 702s Selecting previously unselected package python3-click. 702s Preparing to unpack .../087-python3-click_8.1.7-1_all.deb ... 702s Unpacking python3-click (8.1.7-1) ... 702s Selecting previously unselected package python3-cloudpickle. 702s Preparing to unpack .../088-python3-cloudpickle_3.0.0-2_all.deb ... 702s Unpacking python3-cloudpickle (3.0.0-2) ... 702s Selecting previously unselected package python3-contourpy. 702s Preparing to unpack .../089-python3-contourpy_1.0.7-3_armhf.deb ... 702s Unpacking python3-contourpy (1.0.7-3) ... 702s Selecting previously unselected package python3-cpuinfo. 702s Preparing to unpack .../090-python3-cpuinfo_9.0.0+git20221119-1_all.deb ... 702s Unpacking python3-cpuinfo (9.0.0+git20221119-1) ... 702s Selecting previously unselected package python3-cycler. 702s Preparing to unpack .../091-python3-cycler_0.12.1-1_all.deb ... 702s Unpacking python3-cycler (0.12.1-1) ... 702s Selecting previously unselected package python3-fsspec. 702s Preparing to unpack .../092-python3-fsspec_2024.6.0-1_all.deb ... 702s Unpacking python3-fsspec (2024.6.0-1) ... 702s Selecting previously unselected package python3-toolz. 702s Preparing to unpack .../093-python3-toolz_0.12.1-1_all.deb ... 702s Unpacking python3-toolz (0.12.1-1) ... 703s Selecting previously unselected package python3-packaging. 703s Preparing to unpack .../094-python3-packaging_24.1-1_all.deb ... 703s Unpacking python3-packaging (24.1-1) ... 703s Selecting previously unselected package python3-locket. 703s Preparing to unpack .../095-python3-locket_1.0.0-2_all.deb ... 703s Unpacking python3-locket (1.0.0-2) ... 703s Selecting previously unselected package python3-partd. 703s Preparing to unpack .../096-python3-partd_1.4.2-1_all.deb ... 703s Unpacking python3-partd (1.4.2-1) ... 703s Selecting previously unselected package python3-dask. 703s Preparing to unpack .../097-python3-dask_2024.5.2+dfsg-1_all.deb ... 703s Unpacking python3-dask (2024.5.2+dfsg-1) ... 703s Selecting previously unselected package python3-decorator. 703s Preparing to unpack .../098-python3-decorator_5.1.1-5_all.deb ... 703s Unpacking python3-decorator (5.1.1-5) ... 703s Selecting previously unselected package python3-defusedxml. 703s Preparing to unpack .../099-python3-defusedxml_0.7.1-2_all.deb ... 703s Unpacking python3-defusedxml (0.7.1-2) ... 703s Selecting previously unselected package python3-et-xmlfile. 704s Preparing to unpack .../100-python3-et-xmlfile_1.0.1-2.1_all.deb ... 704s Unpacking python3-et-xmlfile (1.0.1-2.1) ... 704s Selecting previously unselected package python3-execnet. 704s Preparing to unpack .../101-python3-execnet_2.1.1-1_all.deb ... 704s Unpacking python3-execnet (2.1.1-1) ... 704s Selecting previously unselected package python3-scipy. 704s Preparing to unpack .../102-python3-scipy_1.12.0-2_armhf.deb ... 704s Unpacking python3-scipy (1.12.0-2) ... 704s Selecting previously unselected package python3-ufolib2. 705s Preparing to unpack .../103-python3-ufolib2_0.16.0+dfsg1-1_all.deb ... 705s Unpacking python3-ufolib2 (0.16.0+dfsg1-1) ... 705s Selecting previously unselected package python3-mpmath. 705s Preparing to unpack .../104-python3-mpmath_1.3.0-1_all.deb ... 705s Unpacking python3-mpmath (1.3.0-1) ... 706s Selecting previously unselected package python3-sympy. 706s Preparing to unpack .../105-python3-sympy_1.12.1-1_all.deb ... 706s Unpacking python3-sympy (1.12.1-1) ... 707s Selecting previously unselected package python3-fs. 707s Preparing to unpack .../106-python3-fs_2.4.16-4_all.deb ... 707s Unpacking python3-fs (2.4.16-4) ... 707s Selecting previously unselected package python3-lxml:armhf. 707s Preparing to unpack .../107-python3-lxml_5.2.2-1_armhf.deb ... 707s Unpacking python3-lxml:armhf (5.2.2-1) ... 707s Selecting previously unselected package python3-lz4. 708s Preparing to unpack .../108-python3-lz4_4.0.2+dfsg-1build4_armhf.deb ... 708s Unpacking python3-lz4 (4.0.2+dfsg-1build4) ... 708s Selecting previously unselected package unicode-data. 708s Preparing to unpack .../109-unicode-data_15.1.0-1_all.deb ... 708s Unpacking unicode-data (15.1.0-1) ... 708s Selecting previously unselected package python3-fonttools. 708s Preparing to unpack .../110-python3-fonttools_4.46.0-1build2_armhf.deb ... 708s Unpacking python3-fonttools (4.46.0-1build2) ... 709s Selecting previously unselected package python3-webencodings. 709s Preparing to unpack .../111-python3-webencodings_0.5.1-5_all.deb ... 709s Unpacking python3-webencodings (0.5.1-5) ... 709s Selecting previously unselected package python3-html5lib. 710s Preparing to unpack .../112-python3-html5lib_1.1-6_all.deb ... 710s Unpacking python3-html5lib (1.1-6) ... 711s Selecting previously unselected package python3-sortedcontainers. 712s Preparing to unpack .../113-python3-sortedcontainers_2.4.0-2_all.deb ... 712s Unpacking python3-sortedcontainers (2.4.0-2) ... 712s Selecting previously unselected package python3-hypothesis. 713s Preparing to unpack .../114-python3-hypothesis_6.105.1-1_all.deb ... 713s Unpacking python3-hypothesis (6.105.1-1) ... 714s Selecting previously unselected package python3-iniconfig. 714s Preparing to unpack .../115-python3-iniconfig_1.1.1-2_all.deb ... 714s Unpacking python3-iniconfig (1.1.1-2) ... 715s Selecting previously unselected package python3-kiwisolver. 715s Preparing to unpack .../116-python3-kiwisolver_1.4.5-1_armhf.deb ... 715s Unpacking python3-kiwisolver (1.4.5-1) ... 715s Selecting previously unselected package libopenjp2-7:armhf. 716s Preparing to unpack .../117-libopenjp2-7_2.5.0-2build3_armhf.deb ... 716s Unpacking libopenjp2-7:armhf (2.5.0-2build3) ... 716s Selecting previously unselected package python3-pil:armhf. 716s Preparing to unpack .../118-python3-pil_10.4.0-1_armhf.deb ... 716s Unpacking python3-pil:armhf (10.4.0-1) ... 716s Selecting previously unselected package python3-tk:armhf. 716s Preparing to unpack .../119-python3-tk_3.12.4-2_armhf.deb ... 716s Unpacking python3-tk:armhf (3.12.4-2) ... 716s Selecting previously unselected package python3-pil.imagetk:armhf. 717s Preparing to unpack .../120-python3-pil.imagetk_10.4.0-1_armhf.deb ... 717s Unpacking python3-pil.imagetk:armhf (10.4.0-1) ... 717s Selecting previously unselected package python3-matplotlib. 717s Preparing to unpack .../121-python3-matplotlib_3.6.3-2ubuntu1_armhf.deb ... 717s Unpacking python3-matplotlib (3.6.3-2ubuntu1) ... 717s Selecting previously unselected package python3-numexpr. 717s Preparing to unpack .../122-python3-numexpr_2.10.1-2_armhf.deb ... 717s Unpacking python3-numexpr (2.10.1-2) ... 717s Selecting previously unselected package python3-odf. 718s Preparing to unpack .../123-python3-odf_1.4.2-2_all.deb ... 718s Unpacking python3-odf (1.4.2-2) ... 718s Selecting previously unselected package python3-openpyxl. 718s Preparing to unpack .../124-python3-openpyxl_3.1.2+dfsg-7_all.deb ... 718s Unpacking python3-openpyxl (3.1.2+dfsg-7) ... 718s Selecting previously unselected package python3-pluggy. 718s Preparing to unpack .../125-python3-pluggy_1.5.0-1_all.deb ... 718s Unpacking python3-pluggy (1.5.0-1) ... 718s Selecting previously unselected package python3-py. 718s Preparing to unpack .../126-python3-py_1.11.0-2_all.deb ... 718s Unpacking python3-py (1.11.0-2) ... 718s Selecting previously unselected package python3-pyreadstat. 718s Preparing to unpack .../127-python3-pyreadstat_1.2.6-1build1_armhf.deb ... 718s Unpacking python3-pyreadstat (1.2.6-1build1) ... 718s Selecting previously unselected package python3-pytest. 718s Preparing to unpack .../128-python3-pytest_8.2.2-1ubuntu1_all.deb ... 718s Unpacking python3-pytest (8.2.2-1ubuntu1) ... 718s Selecting previously unselected package python3-pytest-asyncio. 718s Preparing to unpack .../129-python3-pytest-asyncio_0.20.3-1.3_all.deb ... 718s Unpacking python3-pytest-asyncio (0.20.3-1.3) ... 719s Selecting previously unselected package python3-pytest-forked. 719s Preparing to unpack .../130-python3-pytest-forked_1.6.0-2_all.deb ... 719s Unpacking python3-pytest-forked (1.6.0-2) ... 719s Selecting previously unselected package python3-werkzeug. 719s Preparing to unpack .../131-python3-werkzeug_3.0.3-1_all.deb ... 719s Unpacking python3-werkzeug (3.0.3-1) ... 719s Selecting previously unselected package python3-pytest-localserver. 719s Preparing to unpack .../132-python3-pytest-localserver_0.8.1-2_all.deb ... 719s Unpacking python3-pytest-localserver (0.8.1-2) ... 720s Selecting previously unselected package python3-pytest-xdist. 720s Preparing to unpack .../133-python3-pytest-xdist_3.6.1-1_all.deb ... 720s Unpacking python3-pytest-xdist (3.6.1-1) ... 721s Selecting previously unselected package python3-greenlet. 721s Preparing to unpack .../134-python3-greenlet_3.0.3-0ubuntu5_armhf.deb ... 721s Unpacking python3-greenlet (3.0.3-0ubuntu5) ... 721s Selecting previously unselected package python3-sqlalchemy. 723s Preparing to unpack .../135-python3-sqlalchemy_2.0.31+ds1-1_all.deb ... 723s Unpacking python3-sqlalchemy (2.0.31+ds1-1) ... 724s Selecting previously unselected package python3-tables-lib. 727s Preparing to unpack .../136-python3-tables-lib_3.9.2-2build2_armhf.deb ... 727s Unpacking python3-tables-lib (3.9.2-2build2) ... 728s Selecting previously unselected package python3-tables. 731s Preparing to unpack .../137-python3-tables_3.9.2-2build2_all.deb ... 731s Unpacking python3-tables (3.9.2-2build2) ... 732s Selecting previously unselected package python3-xarray. 734s Preparing to unpack .../138-python3-xarray_2024.03.0-1_all.deb ... 734s Unpacking python3-xarray (2024.03.0-1) ... 735s Selecting previously unselected package python3-zstandard. 736s Preparing to unpack .../139-python3-zstandard_0.23.0-2_armhf.deb ... 736s Unpacking python3-zstandard (0.23.0-2) ... 737s Selecting previously unselected package tzdata-legacy. 739s Preparing to unpack .../140-tzdata-legacy_2024a-4ubuntu1_all.deb ... 739s Unpacking tzdata-legacy (2024a-4ubuntu1) ... 740s Selecting previously unselected package x11-xkb-utils. 743s Preparing to unpack .../141-x11-xkb-utils_7.7+8build2_armhf.deb ... 743s Unpacking x11-xkb-utils (7.7+8build2) ... 744s Selecting previously unselected package xsel. 747s Preparing to unpack .../142-xsel_1.2.1-1_armhf.deb ... 747s Unpacking xsel (1.2.1-1) ... 748s Selecting previously unselected package xserver-common. 750s Preparing to unpack .../143-xserver-common_2%3a21.1.12-1ubuntu1_all.deb ... 750s Unpacking xserver-common (2:21.1.12-1ubuntu1) ... 750s Selecting previously unselected package libglvnd0:armhf. 752s Preparing to unpack .../144-libglvnd0_1.7.0-1build1_armhf.deb ... 752s Unpacking libglvnd0:armhf (1.7.0-1build1) ... 753s Selecting previously unselected package libglx0:armhf. 755s Preparing to unpack .../145-libglx0_1.7.0-1build1_armhf.deb ... 755s Unpacking libglx0:armhf (1.7.0-1build1) ... 756s Selecting previously unselected package libgl1:armhf. 758s Preparing to unpack .../146-libgl1_1.7.0-1build1_armhf.deb ... 758s Unpacking libgl1:armhf (1.7.0-1build1) ... 759s Selecting previously unselected package xvfb. 761s Preparing to unpack .../147-xvfb_2%3a21.1.12-1ubuntu1_armhf.deb ... 761s Unpacking xvfb (2:21.1.12-1ubuntu1) ... 761s Selecting previously unselected package locales-all. 763s Preparing to unpack .../148-locales-all_2.39-3.1ubuntu3_armhf.deb ... 763s Unpacking locales-all (2.39-3.1ubuntu3) ... 765s Selecting previously unselected package autopkgtest-satdep. 766s Preparing to unpack .../149-2-autopkgtest-satdep.deb ... 766s Unpacking autopkgtest-satdep (0) ... 766s Setting up libgraphite2-3:armhf (1.3.14-2ubuntu1) ... 766s Setting up xsel (1.2.1-1) ... 766s Setting up libxcb-dri3-0:armhf (1.17.0-2) ... 766s Setting up liblcms2-2:armhf (2.14-2build1) ... 766s Setting up libpixman-1-0:armhf (0.42.2-1build1) ... 766s Setting up libsharpyuv0:armhf (1.4.0-0.1) ... 766s Setting up libx11-xcb1:armhf (2:1.8.7-1build1) ... 766s Setting up libdrm-nouveau2:armhf (2.4.121-2) ... 766s Setting up libxcb-xfixes0:armhf (1.17.0-2) ... 766s Setting up liblerc4:armhf (4.0.0+ds-4ubuntu2) ... 766s Setting up libxpm4:armhf (1:3.5.17-1build2) ... 766s Setting up libxrender1:armhf (1:0.9.10-1.1build1) ... 766s Setting up libdrm-radeon1:armhf (2.4.121-2) ... 766s Setting up libglvnd0:armhf (1.7.0-1build1) ... 766s Setting up fonts-lyx (2.4.1-2) ... 766s Setting up libxcb-glx0:armhf (1.17.0-2) ... 766s Setting up x11-common (1:7.7+23ubuntu3) ... 767s Setting up libdeflate0:armhf (1.20-1) ... 767s Setting up libqhull-r8.0:armhf (2020.2-6build1) ... 767s Setting up libxcb-shm0:armhf (1.17.0-2) ... 767s Setting up libgomp1:armhf (14.1.0-5ubuntu1) ... 767s Setting up locales (2.39-3.1ubuntu3) ... 770s locales-all installed, skipping locales generation 771s Setting up libunwind8:armhf (1.6.2-3.1) ... 771s Setting up libjbig0:armhf (2.1-6.1ubuntu2) ... 771s Setting up locales-all (2.39-3.1ubuntu3) ... 771s Setting up libaec0:armhf (1.1.3-1) ... 771s Setting up tzdata-legacy (2024a-4ubuntu1) ... 771s Setting up libxxf86vm1:armhf (1:1.1.4-1build4) ... 771s Setting up libsnappy1v5:armhf (1.2.1-1) ... 771s Setting up libxcb-present0:armhf (1.17.0-2) ... 771s Setting up unicode-data (15.1.0-1) ... 771s Setting up libblosc2-4:armhf (2.15.0+ds-1) ... 771s Setting up libfontenc1:armhf (1:1.1.8-1build1) ... 771s Setting up libllvm17t64:armhf (1:17.0.6-12) ... 771s Setting up libfreetype6:armhf (2.13.2+dfsg-1build3) ... 771s Setting up libxfixes3:armhf (1:6.0.0-2build1) ... 771s Setting up libxcb-sync1:armhf (1.17.0-2) ... 771s Setting up libimagequant0:armhf (2.18.0-1build1) ... 771s Setting up fonts-dejavu-mono (2.37-8) ... 771s Setting up libxrandr2:armhf (2:1.5.4-1) ... 771s Setting up libtcl8.6:armhf (8.6.14+dfsg-1build1) ... 771s Setting up fonts-dejavu-core (2.37-8) ... 771s Setting up libjpeg-turbo8:armhf (2.1.5-2ubuntu2) ... 771s Setting up libglapi-mesa:armhf (24.0.9-0ubuntu2) ... 771s Setting up libvulkan1:armhf (1.3.283.0-1) ... 771s Setting up libwebp7:armhf (1.4.0-0.1) ... 771s Setting up libxcb-dri2-0:armhf (1.17.0-2) ... 771s Setting up libxshmfence1:armhf (1.3-1build5) ... 771s Setting up libxcb-randr0:armhf (1.17.0-2) ... 771s Setting up libxslt1.1:armhf (1.1.39-0exp1build1) ... 771s Setting up libblosc1:armhf (1.21.5+ds-1build1) ... 771s Setting up libopenjp2-7:armhf (2.5.0-2build3) ... 771s Setting up libharfbuzz0b:armhf (8.3.0-2build2) ... 772s Setting up libxss1:armhf (1:1.2.3-1build3) ... 772s Setting up libxkbfile1:armhf (1:1.1.0-1build4) ... 772s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 772s Setting up python-matplotlib-data (3.6.3-2ubuntu1) ... 772s Setting up libwebpmux3:armhf (1.4.0-0.1) ... 772s Setting up libxfont2:armhf (1:2.0.6-1build1) ... 772s Setting up python-tables-data (3.9.2-2build2) ... 772s Setting up libsz2:armhf (1.1.3-1) ... 772s Setting up libpython3-stdlib:armhf (3.12.4-1) ... 772s Setting up liblbfgsb0:armhf (3.0+dfsg.4-1build1) ... 772s Setting up libdrm-amdgpu1:armhf (2.4.121-2) ... 772s Setting up libjpeg8:armhf (8c-2ubuntu11) ... 772s Setting up libice6:armhf (2:1.0.10-1build3) ... 772s Setting up fontconfig-config (2.15.0-1.1ubuntu2) ... 773s Setting up libwebpdemux2:armhf (1.4.0-0.1) ... 773s Setting up libgl1-mesa-dri:armhf (24.0.9-0ubuntu2) ... 773s Setting up python3 (3.12.4-1) ... 774s Setting up python3-sortedcontainers (2.4.0-2) ... 775s Setting up python3-webencodings (0.5.1-5) ... 776s Setting up python3-pyreadstat (1.2.6-1build1) ... 776s Setting up python3-cloudpickle (3.0.0-2) ... 776s Setting up python3-decorator (5.1.1-5) ... 776s Setting up python3-zstandard (0.23.0-2) ... 777s Setting up python3-packaging (24.1-1) ... 777s Setting up libjs-jquery-ui (1.13.2+dfsg-1) ... 777s Setting up python3-werkzeug (3.0.3-1) ... 778s Setting up python3-brotli (1.1.0-2build2) ... 779s Setting up libraqm0:armhf (0.10.1-1build1) ... 779s Setting up python3-greenlet (3.0.3-0ubuntu5) ... 779s Setting up python3-cycler (0.12.1-1) ... 781s Setting up python3-kiwisolver (1.4.5-1) ... 782s Setting up python3-bottleneck (1.3.8+ds1-1) ... 783s Setting up python3-numexpr (2.10.1-2) ... 783s Setting up python3-cpuinfo (9.0.0+git20221119-1) ... 783s Setting up python3-html5lib (1.1-6) ... 784s Setting up python3-pluggy (1.5.0-1) ... 784s Setting up python3-lxml:armhf (5.2.2-1) ... 785s Setting up libtiff6:armhf (4.5.1+git230720-4ubuntu3) ... 785s Setting up python3-et-xmlfile (1.0.1-2.1) ... 785s Setting up python3-toolz (0.12.1-1) ... 786s Setting up python3-contourpy (1.0.7-3) ... 786s Setting up libfontconfig1:armhf (2.15.0-1.1ubuntu2) ... 786s Setting up python3-mpmath (1.3.0-1) ... 787s Setting up libhdf5-103-1t64:armhf (1.10.10+repack-3.1ubuntu4) ... 787s Setting up python3-execnet (2.1.1-1) ... 787s Setting up python3-locket (1.0.0-2) ... 788s Setting up python3-appdirs (1.4.4-4) ... 788s Setting up libsm6:armhf (2:1.2.3-1build3) ... 788s Setting up python3-soupsieve (2.5-1) ... 788s Setting up python3-partd (1.4.2-1) ... 789s Setting up python3-iniconfig (1.1.1-2) ... 789s Setting up python3-sympy (1.12.1-1) ... 797s Setting up libxft2:armhf (2.3.6-1build1) ... 797s Setting up libglx-mesa0:armhf (24.0.9-0ubuntu2) ... 797s Setting up python3-scipy (1.12.0-2) ... 801s Setting up python3-async-generator (1.10-4) ... 801s Setting up libglx0:armhf (1.7.0-1build1) ... 801s Setting up python3-py (1.11.0-2) ... 801s Setting up python3-colorama (0.4.6-4) ... 802s Setting up python3-gdbm:armhf (3.12.4-2) ... 802s Setting up python3-lz4 (4.0.2+dfsg-1build4) ... 802s Setting up python3-defusedxml (0.7.1-2) ... 803s Setting up python3-pytest (8.2.2-1ubuntu1) ... 803s Setting up python3-tables-lib (3.9.2-2build2) ... 803s Setting up python3-pytest-localserver (0.8.1-2) ... 803s Setting up libtk8.6:armhf (8.6.14-1build1) ... 803s Setting up python3-hypothesis (6.105.1-1) ... 804s Setting up python3-fsspec (2024.6.0-1) ... 804s Setting up python3-xarray (2024.03.0-1) ... 806s Setting up python3-all (3.12.4-1) ... 806s Setting up python3-tables (3.9.2-2build2) ... 808s Setting up python3-click (8.1.7-1) ... 809s Setting up python3-bs4 (4.12.3-1) ... 810s Setting up python3-sqlalchemy (2.0.31+ds1-1) ... 811s Setting up python3-fs (2.4.16-4) ... 812s Setting up python3-pytest-forked (1.6.0-2) ... 812s Setting up python3-pil:armhf (10.4.0-1) ... 813s Setting up libgl1:armhf (1.7.0-1build1) ... 813s Setting up python3-openpyxl (3.1.2+dfsg-7) ... 814s Setting up libxt6t64:armhf (1:1.2.1-1.2build1) ... 814s Setting up python3-pytest-asyncio (0.20.3-1.3) ... 814s Setting up python3-odf (1.4.2-2) ... 815s Setting up tk8.6-blt2.5 (2.5.3+dfsg-7build1) ... 815s Setting up libxmu6:armhf (2:1.1.3-3build2) ... 815s Setting up python3-pytest-xdist (3.6.1-1) ... 816s Setting up blt (2.5.3+dfsg-7build1) ... 816s Setting up python3-dask (2024.5.2+dfsg-1) ... 819s Setting up python3-tk:armhf (3.12.4-2) ... 820s Setting up libxaw7:armhf (2:1.0.14-1build2) ... 820s Setting up python3-pil.imagetk:armhf (10.4.0-1) ... 821s Setting up x11-xkb-utils (7.7+8build2) ... 821s Setting up xserver-common (2:21.1.12-1ubuntu1) ... 821s Setting up xvfb (2:21.1.12-1ubuntu1) ... 821s Setting up python3-ufolib2 (0.16.0+dfsg1-1) ... 821s Setting up python3-fonttools (4.46.0-1build2) ... 823s Setting up python3-matplotlib (3.6.3-2ubuntu1) ... 825s Setting up autopkgtest-satdep (0) ... 825s Processing triggers for libc-bin (2.39-3.1ubuntu3) ... 825s Processing triggers for systemd (256-1ubuntu1) ... 826s Processing triggers for man-db (2.12.1-2) ... 853s (Reading database ... 77606 files and directories currently installed.) 853s Removing autopkgtest-satdep (0) ... 861s autopkgtest [16:48:24]: test unittests3: [----------------------- 866s ++ dpkg --print-architecture 866s + arch=armhf 866s ++ py3versions -s 866s + pys=python3.12 866s + sourcetestroot=/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests 866s + echo amd64 i386 866s + grep armhf 867s + marker='not slow' 867s + echo armhf 867s + grep -E 'mips|hppa' 867s + PYTEST_WARN_IGNORE= 867s + cd /tmp/autopkgtest.7zWmJG/autopkgtest_tmp 867s + TEST_SUCCESS=true 867s + for py in $pys 867s + echo '=== python3.12 ===' 867s === python3.12 === 867s ++ python3.12 -c 'import pandas as pd; print(pd.__path__[0])' 869s + modpath=/usr/lib/python3/dist-packages/pandas 869s + for TEST_SUBSET in $modpath/tests/* 869s + echo /usr/lib/python3/dist-packages/pandas/tests/__init__.py 869s + grep -q -e __pycache__ 869s + PANDAS_CI=1 869s + LC_ALL=C.UTF-8 869s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/__init__.py 887s ============================= test session starts ============================== 887s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 887s rootdir: /usr/lib/python3/dist-packages/pandas/tests 887s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 887s asyncio: mode=Mode.STRICT 887s collected 0 items 887s 887s =============================== warnings summary =============================== 887s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 887s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-b1fawfjx' 887s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 887s 887s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 887s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-5rca7wvr' 887s session.config.cache.set(STEPWISE_CACHE_DIR, []) 887s 887s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 887s ============================= 2 warnings in 0.02s ============================== 888s + test 5 == 5 888s + echo 'rdjoqkol test state = true' 888s + for TEST_SUBSET in $modpath/tests/* 888s rdjoqkol test state = true 888s + echo /usr/lib/python3/dist-packages/pandas/tests/__pycache__ 888s + grep -q -e __pycache__ 888s rdjoqkol test state = true 888s + echo 'rdjoqkol test state = true' 888s + for TEST_SUBSET in $modpath/tests/* 888s + echo /usr/lib/python3/dist-packages/pandas/tests/api 888s + grep -q -e __pycache__ 888s + PANDAS_CI=1 888s + LC_ALL=C.UTF-8 888s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/api 892s ============================= test session starts ============================== 892s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 892s rootdir: /usr/lib/python3/dist-packages/pandas/tests/api 892s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 892s asyncio: mode=Mode.STRICT 892s collected 14 items 892s 892s ../../../usr/lib/python3/dist-packages/pandas/tests/api/test_api.py ............ 892s ../../../usr/lib/python3/dist-packages/pandas/tests/api/test_types.py .. 892s 892s =============================== warnings summary =============================== 892s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 892s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-rpnox7g4' 892s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 892s 892s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 892s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-ymiss5wi' 892s session.config.cache.set(STEPWISE_CACHE_DIR, []) 892s 892s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 892s ======================== 14 passed, 2 warnings in 0.11s ======================== 892s + echo 'rdjoqkol test state = true' 892s + for TEST_SUBSET in $modpath/tests/* 892s rdjoqkol test state = true 892s + echo /usr/lib/python3/dist-packages/pandas/tests/apply 892s + grep -q -e __pycache__ 892s + PANDAS_CI=1 892s + LC_ALL=C.UTF-8 892s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/apply 896s ============================= test session starts ============================== 896s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 896s rootdir: /usr/lib/python3/dist-packages/pandas/tests/apply 896s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 896s asyncio: mode=Mode.STRICT 896s collected 1176 items 896s 897s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_frame_apply.py ...................................................................................................................................................................................................... 898s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_frame_apply_relabeling.py ..x.. 899s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_frame_transform.py ...s.s.s................................................ss..ss..ss.....x........x........x........ 899s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_invalid_arg.py ....................................................................................................................................................................................................... 900s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_series_apply.py .............................x.....x....x........................................................................................ 900s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_series_apply_relabeling.py .. 900s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_series_transform.py ............ 907s ../../../usr/lib/python3/dist-packages/pandas/tests/apply/test_str.py ....................xxxxx...................................................................................................................................................................................................................................................................................................................................................................................................................................................................x...........x...........x...........x...........x........ 907s 907s =============================== warnings summary =============================== 907s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 907s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-j3axdw9r' 907s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 907s 907s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 907s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-s0azptwu' 907s session.config.cache.set(STEPWISE_CACHE_DIR, []) 907s 907s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 907s =========== 1150 passed, 9 skipped, 17 xfailed, 2 warnings in 11.27s =========== 907s rdjoqkol test state = true 907s + echo 'rdjoqkol test state = true' 907s + for TEST_SUBSET in $modpath/tests/* 907s + echo /usr/lib/python3/dist-packages/pandas/tests/arithmetic 907s + grep -q -e __pycache__ 907s + PANDAS_CI=1 907s + LC_ALL=C.UTF-8 907s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/arithmetic 911s ============================= test session starts ============================== 911s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 911s rootdir: /usr/lib/python3/dist-packages/pandas/tests/arithmetic 911s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 911s asyncio: mode=Mode.STRICT 911s collected 28484 items 911s 911s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_array_ops.py .... 912s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_categorical.py .... 1209s ../../../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.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 1213s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_interval.py .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 1219s ../../../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....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1219s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_object.py .............s.s...................................................................................................................................................................................... 1223s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_period.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 1238s ../../../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.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 1238s 1238s =============================== warnings summary =============================== 1238s ../../../usr/lib/python3/dist-packages/pandas/tests/arithmetic/test_datetime64.py:808 1238s /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 1238s @pytest.mark.arm_slow 1238s 1238s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1238s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-vsz2hryw' 1238s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1238s 1238s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1238s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-63o9s4i7' 1238s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1238s 1238s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1238s === 27576 passed, 268 skipped, 640 xfailed, 3 warnings in 329.39s (0:05:29) ==== 1240s rdjoqkol test state = true 1240s + echo 'rdjoqkol test state = true' 1240s + for TEST_SUBSET in $modpath/tests/* 1240s + echo /usr/lib/python3/dist-packages/pandas/tests/arrays 1240s + grep -q -e __pycache__ 1240s + PANDAS_CI=1 1240s + LC_ALL=C.UTF-8 1240s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/arrays 1245s ============================= test session starts ============================== 1245s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1245s rootdir: /usr/lib/python3/dist-packages/pandas/tests/arrays 1245s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1245s asyncio: mode=Mode.STRICT 1245s collected 19203 items / 2 skipped 1245s 1245s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_arithmetic.py ..................... 1245s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_astype.py ... 1246s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_comparison.py .................................... 1246s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_construction.py ............................. 1246s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_function.py ........... 1246s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_indexing.py ... 1246s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_logical.py ................................................................................... 1246s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_ops.py .. 1246s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_reduction.py .............................. 1246s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/boolean/test_repr.py . 1246s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_algos.py .............. 1246s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_analytics.py ........x..x................................................ 1246s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_api.py ................................................................. 1246s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_astype.py ...................... 1246s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_constructors.py ....................................................................................................................... 1247s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_dtypes.py .................................. 1247s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_indexing.py ............................................................................................................................................... 1247s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_map.py ............................. 1247s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_missing.py .......................... 1247s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_operators.py ...................................... 1247s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_replace.py ...................... 1247s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_repr.py ....................... 1247s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_sorting.py .... 1247s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_subclass.py ... 1247s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_take.py ................ 1247s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/categorical/test_warnings.py s 1247s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/datetimes/test_constructors.py ......................ssssssssssssss 1247s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/datetimes/test_cumulative.py ... 1248s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/datetimes/test_reductions.py ................................................................................................................................................................................................................. 1248s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_arithmetic.py .............................................................. 1248s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_astype.py ......... 1248s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_comparison.py .................................................................................................................. 1248s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_concat.py ... 1248s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_construction.py ............................... 1248s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_contains.py . 1248s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_function.py ...........sssssss.................................. 1248s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_repr.py ........ 1248s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/floating/test_to_numpy.py .................................. 1249s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_arithmetic.py ................................................................................................................................................................................................................................................................................................................................................... 1250s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_comparison.py ......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1250s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_concat.py .................. 1250s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_construction.py ............................................... 1251s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_dtypes.py .......................................................................................................................... 1251s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_function.py ............................................................................................................................. 1251s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_indexing.py .. 1251s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_reduction.py ............................................... 1251s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/integer/test_repr.py .......................... 1251s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/interval/test_astype.py .. 1251s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/interval/test_interval.py ...............................................................................ssssssss............ 1251s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/interval/test_ops.py .................................................................................................................... 1253s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/masked/test_arithmetic.py ..............................................................................................................................................ss........................................................................................................................................................ss........................................................................................................................................................ss........................................................................................................................................................ss........................................................................................................................................................ss............................................................................................................................................................................................................................................................................................................................................................... 1253s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/masked/test_function.py .................... 1253s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/masked/test_indexing.py ........................................................................................................... 1254s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/numpy_/test_indexing.py ....................................... 1254s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/numpy_/test_numpy.py ....................................................................................... 1254s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/period/test_astype.py .......... 1254s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/period/test_constructors.py .................... 1254s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/period/test_reductions.py ... 1254s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_accessor.py ............................................. 1256s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_arithmetics.py ...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1256s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_array.py ........................................................................... 1256s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_astype.py ........................ 1257s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_combine_concat.py .......... 1257s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_constructors.py ................................. 1257s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_dtype.py ........................................................ 1257s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_indexing.py ............................................................................... 1257s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_libsparse.py ..................................................................................... 1257s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_reductions.py ....................................................................... 1257s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/sparse/test_unary.py ......... 1259s ../../../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 1259s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/string_/test_string_arrow.py s.ss.ssssssssss.ssssssssssssssssssssssssssssssssss 1259s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/test_array.py ...................................................................................... 1281s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/test_datetimelike.py ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ssssss....................................................................................................................................................................................................ssssssssssssssssssssssssssssssssssss.......................................................................................................................................................................................................................................................................................................................................... 1287s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/test_datetimes.py .......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1287s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/test_ndarray_backed.py ..... 1287s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/test_period.py ................... 1288s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/test_timedeltas.py ...................................................................................................................................................... 1288s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/timedeltas/test_constructors.py ....... 1288s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/timedeltas/test_cumulative.py .. 1288s ../../../usr/lib/python3/dist-packages/pandas/tests/arrays/timedeltas/test_reductions.py ....................... 1288s 1288s =============================== warnings summary =============================== 1288s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1288s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-w69d3y7w' 1288s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1288s 1288s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1288s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-_9epvy62' 1288s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1288s 1288s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1288s ========= 18169 passed, 1028 skipped, 8 xfailed, 2 warnings in 46.04s ========== 1289s + echo 'rdjoqkol test state = true' 1289s + for TEST_SUBSET in $modpath/tests/* 1289s rdjoqkol test state = true 1289s + echo /usr/lib/python3/dist-packages/pandas/tests/base 1289s + grep -q -e __pycache__ 1289s + PANDAS_CI=1 1289s + LC_ALL=C.UTF-8 1289s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/base 1292s ============================= test session starts ============================== 1292s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1292s rootdir: /usr/lib/python3/dist-packages/pandas/tests/base 1292s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1292s asyncio: mode=Mode.STRICT 1292s collected 1742 items 1292s 1292s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_constructors.py ....................... 1292s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_conversion.py ...........................................................................................................................................................................................................................................................................x..................................... 1292s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_fillna.py ..................................................................................ssssssssssssssssss....ssss........ssssssssss......ss..............................................ss......................ssssssssssss 1293s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_misc.py .......................................................................................................................................................................................................................................xx...xxx....................................................................s...... 1293s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_transpose.py .............................................................................................................................................................................................................................. 1294s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_unique.py ..................................................................................ssssssssssssssssss....ssss........ssssssssss......ss..............................................ss......................ssssssssssss..................................................................................ssssssssssssssssss....ssss..........ssssssss......ss......................................................................ssssssssssss.... 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_value_counts.py ..................................................................................ssssssssssssssssss....ssss........ssssssssss......ss..............................................ss......................ssssssssssss.......... 1295s 1295s =============================== warnings summary =============================== 1295s ../../../usr/lib/python3/dist-packages/pandas/tests/base/test_unique.py:100 1295s /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 1295s @pytest.mark.single_cpu 1295s 1295s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1295s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-gbn4pz9o' 1295s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1295s 1295s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1295s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-mhflfieh' 1295s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1295s 1295s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1295s =========== 1547 passed, 189 skipped, 6 xfailed, 3 warnings in 4.20s =========== 1296s rdjoqkol test state = true 1296s + echo 'rdjoqkol test state = true' 1296s + for TEST_SUBSET in $modpath/tests/* 1296s + grep -q -e __pycache__ 1296s + echo /usr/lib/python3/dist-packages/pandas/tests/computation 1296s + PANDAS_CI=1 1296s + LC_ALL=C.UTF-8 1296s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/computation 1301s ============================= test session starts ============================== 1301s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1301s rootdir: /usr/lib/python3/dist-packages/pandas/tests/computation 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 10999 items 1301s 1301s ../../../usr/lib/python3/dist-packages/pandas/tests/computation/test_compat.py ..... 1370s ../../../usr/lib/python3/dist-packages/pandas/tests/computation/test_eval.py ..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................xx..............................xx..............................xx..............................xx...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................X.........X....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................x....................................................................................................................................................................................................................................xx..xx..... 1370s 1370s =============================== warnings summary =============================== 1370s test_eval.py::TestEval::test_compound_invert_op[float-DataFrame-python-pandas-in] 1370s test_eval.py::TestEval::test_compound_invert_op[float-DataFrame-python-pandas-not in] 1370s test_eval.py::TestEval::test_compound_invert_op[float-Series-python-pandas-in] 1370s test_eval.py::TestEval::test_compound_invert_op[float-Series-python-pandas-not in] 1370s test_eval.py::TestEval::test_compound_invert_op[float-SeriesNaN-python-pandas-in] 1370s test_eval.py::TestEval::test_compound_invert_op[float-SeriesNaN-python-pandas-not in] 1370s test_eval.py::TestEval::test_compound_invert_op[float-DataFrameNaN-python-pandas-in] 1370s test_eval.py::TestEval::test_compound_invert_op[float-DataFrameNaN-python-pandas-not in] 1370s /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. 1370s return self.func(operand) # type: ignore[operator] 1370s 1370s test_eval.py: 14 warnings 1370s /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.) 1370s ret_value = typ(obj).astype(res_t) 1370s 1370s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1370s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-z2eif_pq' 1370s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1370s 1370s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1370s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-9sirfpko' 1370s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1370s 1370s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1370s ===== 10984 passed, 13 xfailed, 2 xpassed, 24 warnings in 69.99s (0:01:09) ===== 1371s rdjoqkol test state = true 1371s + echo 'rdjoqkol test state = true' 1371s + for TEST_SUBSET in $modpath/tests/* 1371s + echo /usr/lib/python3/dist-packages/pandas/tests/config 1371s + grep -q -e __pycache__ 1371s + PANDAS_CI=1 1371s + LC_ALL=C.UTF-8 1371s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/config 1377s ============================= test session starts ============================== 1377s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1377s rootdir: /usr/lib/python3/dist-packages/pandas/tests/config 1377s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1377s asyncio: mode=Mode.STRICT 1377s collected 50 items 1377s 1377s ../../../usr/lib/python3/dist-packages/pandas/tests/config/test_config.py ..................... 1377s ../../../usr/lib/python3/dist-packages/pandas/tests/config/test_localization.py ............................. 1377s 1377s =============================== warnings summary =============================== 1377s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1377s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-nlf9k5_t' 1377s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1377s 1377s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1377s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-25hcpvda' 1377s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1377s 1377s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1377s ======================== 50 passed, 2 warnings in 1.41s ======================== 1378s + echo 'rdjoqkol test state = true' 1378s + for TEST_SUBSET in $modpath/tests/* 1378s rdjoqkol test state = true 1378s + echo /usr/lib/python3/dist-packages/pandas/tests/construction 1378s + grep -q -e __pycache__ 1378s + PANDAS_CI=1 1378s + LC_ALL=C.UTF-8 1378s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/construction 1384s ============================= test session starts ============================== 1385s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1385s rootdir: /usr/lib/python3/dist-packages/pandas/tests/construction 1385s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1385s asyncio: mode=Mode.STRICT 1385s collected 1 item 1385s 1385s ../../../usr/lib/python3/dist-packages/pandas/tests/construction/test_extract_array.py . 1385s 1385s =============================== warnings summary =============================== 1385s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1385s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-r3y8xm86' 1385s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1385s 1385s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1385s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-3_xyn4gt' 1385s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1385s 1385s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1385s ======================== 1 passed, 2 warnings in 0.03s ========================= 1385s rdjoqkol test state = true 1385s + echo 'rdjoqkol test state = true' 1385s + for TEST_SUBSET in $modpath/tests/* 1385s + echo /usr/lib/python3/dist-packages/pandas/tests/copy_view 1385s + grep -q -e __pycache__ 1385s + PANDAS_CI=1 1385s + LC_ALL=C.UTF-8 1385s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/copy_view 1391s ============================= test session starts ============================== 1391s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1391s rootdir: /usr/lib/python3/dist-packages/pandas/tests/copy_view 1391s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1391s asyncio: mode=Mode.STRICT 1391s collected 768 items 1391s 1391s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/index/test_datetimeindex.py ...... 1391s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/index/test_index.py ..................... 1391s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/index/test_periodindex.py .. 1391s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/index/test_timedeltaindex.py .. 1391s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_array.py ............. 1391s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_astype.py .....ss...s.........s.. 1391s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_clip.py ...... 1391s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_constructors.py ............................................................................ 1391s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_core_functionalities.py ....... 1391s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_functions.py .................... 1392s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_indexing.py ....................................................................................s.....s...................................................................................................................................... 1392s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_internals.py ..................... 1392s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_interp_fillna.py .................................................. 1393s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_methods.py ...................................................................................................................................................................................................................................................... 1393s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_replace.py ........................................ 1393s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_setitem.py ........ 1393s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_util.py .. 1393s 1393s =============================== warnings summary =============================== 1393s ../../../usr/lib/python3/dist-packages/pandas/tests/copy_view/test_internals.py:48 1393s /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 1393s @pytest.mark.single_cpu 1393s 1393s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1393s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-i32rj9g4' 1393s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1393s 1393s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1393s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-vknrwtyj' 1393s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1393s 1393s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1393s ================== 762 passed, 6 skipped, 3 warnings in 3.80s ================== 1393s + echo 'rdjoqkol test state = true' 1393s + for TEST_SUBSET in $modpath/tests/* 1393s rdjoqkol test state = true 1393s + echo /usr/lib/python3/dist-packages/pandas/tests/dtypes 1393s + grep -q -e __pycache__ 1394s + PANDAS_CI=1 1394s + LC_ALL=C.UTF-8 1394s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/dtypes 1400s ============================= test session starts ============================== 1400s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1400s rootdir: /usr/lib/python3/dist-packages/pandas/tests/dtypes 1400s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1400s asyncio: mode=Mode.STRICT 1400s collected 5590 items 1400s 1400s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_can_hold_element.py ........... 1400s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_construct_from_scalar.py .... 1400s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_construct_ndarray.py ....... 1400s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_construct_object_arr.py ....................................... 1400s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_dict_compat.py . 1400s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_downcast.py ................................... 1400s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_find_common_type.py .......................................................................................... 1400s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_infer_datetimelike.py ... 1400s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_infer_dtype.py .................................................................... 1400s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_maybe_box_native.py ................ 1404s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/cast/test_promote.py .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 1404s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/test_common.py .......................................................................................................................................................................s...................................................................................................................................................................................................................................................................... 1405s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/test_concat.py .... 1405s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/test_dtypes.py ........................................................................................................................................................................................................................................................................................ 1406s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/test_generic.py .................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1406s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/test_inference.py ......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ssssssss......................................... 1407s ../../../usr/lib/python3/dist-packages/pandas/tests/dtypes/test_missing.py ......................................................................................x.x.x.xxxx............................................................................................................................................................................................................. 1407s 1407s =============================== warnings summary =============================== 1407s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1407s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-om_y55_0' 1407s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1407s 1407s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1407s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-hd77l2p1' 1407s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1407s 1407s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1407s ============ 5574 passed, 9 skipped, 7 xfailed, 2 warnings in 8.86s ============ 1408s + echo 'rdjoqkol test state = true' 1408s + for TEST_SUBSET in $modpath/tests/* 1408s rdjoqkol test state = true 1408s + echo /usr/lib/python3/dist-packages/pandas/tests/extension 1408s + grep -q -e __pycache__ 1408s + PANDAS_CI=1 1408s + LC_ALL=C.UTF-8 1408s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/extension 1413s ============================= test session starts ============================== 1413s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1413s rootdir: /usr/lib/python3/dist-packages/pandas/tests/extension 1413s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1413s asyncio: mode=Mode.STRICT 1413s collected 14412 items / 1 skipped 1413s 1413s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/array_with_attr/test_array_with_attr.py . 1421s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/decimal/test_decimal.py ....................................x.............................................................................................................................................................................................................................................................................................................................xx............................................................s............................xxxxxxxxss..............xxssxxss........................................xxxx..................... 1433s ../../../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........... 1433s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/list/test_list.py . 1436s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_categorical.py ..................................x..................................................................xx................s....................................x....................................................................................ssssssssssssssssssssssss..............................................................ss......................................................xx..........s...................s.....................................................x.............x......................................ssss.......... 1436s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_common.py ............ 1438s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_datetime.py ........................................................xx................................................................................................................................................................................................s...............................................s....................................................................................................x.................................................................................ssss......... 1438s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_extension.py .............. 1441s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_interval.py ....................................x..................................................................................................ssssssssssssssssssssssss................................................................s....................................................................................................................ss....................................................................................................xx............................................................s............x..x. 1473s ../../../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.................................................................... 1490s ../../../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................ 1494s ../../../usr/lib/python3/dist-packages/pandas/tests/extension/test_period.py ................................................................................................................xxxx................................................................................................................................................................................................................................................................................................................................................................................................ss.............................................................................................s.s.......................................................................................................................................................................................................x...x..............................................................................................................................................................ssss........ssss................ 1499s ../../../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.................... 1504s ../../../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 1504s 1504s =============================== warnings summary =============================== 1504s decimal/test_decimal.py: 1 warning 1504s test_categorical.py: 1 warning 1504s test_datetime.py: 1 warning 1504s test_interval.py: 1 warning 1504s test_masked.py: 11 warnings 1504s test_numpy.py: 2 warnings 1504s test_period.py: 2 warnings 1504s test_string.py: 1 warning 1504s /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]` 1504s arr[idx] = arr[0] 1504s 1504s decimal/test_decimal.py: 1 warning 1504s json/test_json.py: 1 warning 1504s test_categorical.py: 1 warning 1504s test_datetime.py: 1 warning 1504s test_interval.py: 1 warning 1504s test_masked.py: 11 warnings 1504s test_numpy.py: 2 warnings 1504s test_period.py: 2 warnings 1504s test_sparse.py: 2 warnings 1504s test_string.py: 1 warning 1504s /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]` 1504s ser[idx] 1504s 1504s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1504s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-0kfrnm45' 1504s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1504s 1504s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1504s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-w2o4bpd5' 1504s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1504s 1504s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1504s = 11306 passed, 2828 skipped, 278 xfailed, 1 xpassed, 45 warnings in 92.90s (0:01:32) = 1505s + echo 'rdjoqkol test state = true' 1505s + for TEST_SUBSET in $modpath/tests/* 1505s rdjoqkol test state = true 1505s + echo /usr/lib/python3/dist-packages/pandas/tests/frame 1505s + grep -q -e __pycache__ 1505s + PANDAS_CI=1 1505s + LC_ALL=C.UTF-8 1505s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/frame 1513s ============================= test session starts ============================== 1513s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1513s rootdir: /usr/lib/python3/dist-packages/pandas/tests/frame 1513s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1513s asyncio: mode=Mode.STRICT 1513s collected 10477 items / 433 deselected / 10044 selected 1513s 1513s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/constructors/test_from_dict.py ............. 1513s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/constructors/test_from_records.py ......................... 1513s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_coercion.py .......x.x. 1513s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_delitem.py .... 1513s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_get.py .... 1513s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_get_value.py .. 1513s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_getitem.py ........................................ 1522s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_indexing.py ..................................................................................................................................................................................................................................s.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1522s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_insert.py ....... 1522s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_mask.py ........... 1522s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_set_value.py ... 1523s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_setitem.py ........................................................................................................s........................................................................................xxx...........................x..x..x..x...... 1523s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_take.py .... 1528s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_where.py ............................................................................................................................................. 1528s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/indexing/test_xs.py .............................. 1528s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_add_prefix_suffix.py ... 1537s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_align.py ........................................................................ 1537s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_asfreq.py .............................. 1537s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_asof.py ........... 1537s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_assign.py ..... 1538s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_astype.py .......................................................................................................................s....s........................................................................................................ss.....ssssssssss 1538s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_at_time.py ...................... 1538s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_between_time.py ss............................ 1539s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_clip.py ..................... 1539s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_combine.py ..... 1539s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_combine_first.py ..................s............................... 1539s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_compare.py ......................... 1539s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_convert_dtypes.py ..ssss..ssss.sss 1539s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_copy.py ..... 1539s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_count.py .. 1540s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_cov_corr.py .............................................................s............ 1541s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_describe.py ...............................................s 1541s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_diff.py ..................................... 1541s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_dot.py ................sss 1541s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_drop.py ......................................................................... 1542s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_drop_duplicates.py ..................................... 1542s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_droplevel.py .. 1542s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_dropna.py ................... 1542s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_dtypes.py ........ 1542s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_duplicated.py .......xxx........... 1542s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_equals.py ... 1542s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_explode.py ..................... 1543s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_fillna.py ....................................................... 1543s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_filter.py ........... 1544s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_first_and_last.py ............. 1544s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_first_valid_index.py ............... 1544s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_get_numeric_data.py .... 1546s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_head_tail.py .................................................................. 1546s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_infer_objects.py . 1547s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_interpolate.py .......................................................... 1547s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_is_homogeneous_dtype.py ....... 1547s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_isetitem.py ... 1547s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_isin.py ................. 1547s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_iterrows.py . 1547s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_join.py ...........s................... 1548s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_map.py ......................... 1548s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_matmul.py .. 1549s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_nlargest.py .........................................................................................................................................................................................................................................................X.....X.....X.....X.......X..... 1550s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_pct_change.py ............................. 1550s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_pipe.py ...... 1550s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_pop.py ... 1556s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_quantile.py ...............................................................xx..........xx..........xx..........xx.................. 1559s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_rank.py .........................................................................................................................ss 1561s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_reindex.py ......x.......................................................................................................................................... 1561s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_reindex_like.py ..... 1561s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_rename.py ......................... 1561s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_rename_axis.py ......... 1561s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_reorder_levels.py ... 1562s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_replace.py ...................ss.................ssss....ssss................................................................................................................................................................. 1563s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_reset_index.py ........................................................................................ 1564s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_round.py ......... 1564s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_sample.py .......................................................... 1564s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_select_dtypes.py ..................................s...... 1564s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_set_axis.py .............. 1569s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_set_index.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 1576s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_shift.py ...................................................................................x.x.x.x.x.xxxx....... 1576s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_size.py ..... 1577s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_sort_index.py ............................................................... 1578s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_sort_values.py ...................................................X...............................XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX..... 1578s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_swapaxes.py .... 1578s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_swaplevel.py . 1583s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py ............................................................................ 1584s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_dict.py ............................................................................................... 1584s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_dict_of_blocks.py .... 1584s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_numpy.py .... 1584s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_period.py ...................................................................... 1584s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_records.py ................................... 1584s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_timestamp.py ...................................................................... 1584s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_transpose.py .............. 1585s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_truncate.py ........................................................................................ 1585s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_tz_convert.py ........... 1585s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_tz_localize.py ......... 1585s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_update.py ............. 1585s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_value_counts.py ................................ 1585s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_values.py ............... 1585s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_alter_axes.py .. 1586s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_api.py ......................ss......... 1591s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_arithmetic.py .......................................................................................x......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................x..........x................................................................................................................................ 1591s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_block_internals.py ................... 1596s ../../../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................................ 1596s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_cumulative.py ....... 1596s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_iteration.py .......... 1596s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_logical_ops.py ................. 1596s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_nonunique_indexes.py ................ 1596s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_npfuncs.py .... 1598s ../../../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 1604s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_reductions.py ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s....................................................................................................x.............x............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 1607s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_repr_info.py .....................................ssss 1615s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_stack_unstack.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 1615s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_subclass.py ................................................... 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py ....xx.........xxxxxxxx.xx....s. 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_unary.py .................. 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_validate.py ............................ 1617s 1617s =============================== warnings summary =============================== 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_rank.py:323 1617s /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 1617s @pytest.mark.single_cpu 1617s 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:202 1617s /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 1617s @pytest.mark.slow 1617s 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:333 1617s /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 1617s @pytest.mark.slow 1617s 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:342 1617s /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 1617s @pytest.mark.slow 1617s 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:363 1617s /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 1617s @pytest.mark.slow 1617s 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:373 1617s /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 1617s @pytest.mark.slow 1617s 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:388 1617s /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 1617s @pytest.mark.slow 1617s 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:394 1617s /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 1617s @pytest.mark.slow 1617s 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:401 1617s /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 1617s @pytest.mark.slow 1617s 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/methods/test_to_csv.py:766 1617s /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 1617s @pytest.mark.slow 1617s 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_constructors.py:2333 1617s /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 1617s @pytest.mark.arm_slow 1617s 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_repr_info.py:155 1617s /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 1617s @pytest.mark.slow 1617s 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_repr_info.py:206 1617s /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 1617s @pytest.mark.slow 1617s 1617s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_stack_unstack.py:2095 1617s /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 1617s @pytest.mark.slow 1617s 1617s methods/test_quantile.py::TestQuantileExtensionDtype::test_quantile_ea_with_na[interval[int64, right]-DataFrame] 1617s methods/test_quantile.py::TestQuantileExtensionDtype::test_quantile_ea_with_na[interval[int64, right]-Series] 1617s /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. 1617s obj.iloc[0] = index._na_value 1617s 1617s methods/test_quantile.py::TestQuantileExtensionDtype::test_quantile_ea_all_na[interval[int64, right]-Series] 1617s /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. 1617s obj.iloc[:] = index._na_value 1617s 1617s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1617s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-oyuu1wfa' 1617s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1617s 1617s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1617s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-jln_p8u4' 1617s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1617s 1617s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1617s = 9753 passed, 194 skipped, 433 deselected, 59 xfailed, 38 xpassed, 19 warnings in 109.16s (0:01:49) = 1619s rdjoqkol test state = true 1619s + echo 'rdjoqkol test state = true' 1619s + for TEST_SUBSET in $modpath/tests/* 1620s + echo /usr/lib/python3/dist-packages/pandas/tests/generic 1620s + grep -q -e __pycache__ 1620s + PANDAS_CI=1 1620s + LC_ALL=C.UTF-8 1620s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/generic 1627s ============================= test session starts ============================== 1627s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1627s rootdir: /usr/lib/python3/dist-packages/pandas/tests/generic 1627s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1627s asyncio: mode=Mode.STRICT 1627s collected 1253 items 1627s 1627s ../../../usr/lib/python3/dist-packages/pandas/tests/generic/test_duplicate_labels.py ..........xx...........x.......xx.xxx................x................ 1633s ../../../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. 1633s ../../../usr/lib/python3/dist-packages/pandas/tests/generic/test_frame.py ............... 1633s ../../../usr/lib/python3/dist-packages/pandas/tests/generic/test_generic.py .................................................................................... 1633s ../../../usr/lib/python3/dist-packages/pandas/tests/generic/test_label_or_level_utils.py ....................................................................... 1634s ../../../usr/lib/python3/dist-packages/pandas/tests/generic/test_series.py ................... 1634s ../../../usr/lib/python3/dist-packages/pandas/tests/generic/test_to_xarray.py ......................s....................................... 1634s 1634s =============================== warnings summary =============================== 1634s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1634s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-3z0y0fw3' 1634s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1634s 1634s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1634s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-xjnbd_vc' 1634s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1634s 1634s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1634s ========== 1010 passed, 105 skipped, 138 xfailed, 2 warnings in 7.87s ========== 1635s rdjoqkol test state = true 1635s + echo 'rdjoqkol test state = true' 1635s + for TEST_SUBSET in $modpath/tests/* 1635s + echo /usr/lib/python3/dist-packages/pandas/tests/groupby 1635s + grep -q -e __pycache__ 1635s + PANDAS_CI=1 1635s + LC_ALL=C.UTF-8 1635s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/groupby 1648s ============================= test session starts ============================== 1648s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1648s rootdir: /usr/lib/python3/dist-packages/pandas/tests/groupby 1648s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1648s asyncio: mode=Mode.STRICT 1648s collected 29188 items / 1832 deselected / 1 skipped / 27356 selected 1648s 1650s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_aggregate.py ..............................................................................................................................................................................................................................................................................................................................................x..x.......................................................................x...... 1651s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_cython.py ........................................................................................................................................................................ 1651s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss 1651s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_other.py ........................................ 1652s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_any_all.py ......................................................................................................................... 1652s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_api.py ......s..s..............................s..s.......................... 1652s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_apply.py ............................................................................................................................... 1652s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_apply_mutate.py ..... 1652s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_bin_groupby.py ...... 1691s ../../../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................................ 1691s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_counting.py .................................ssss 1692s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_filters.py .......................... 1704s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_function.py ........................................................................xxx......ssssss..............................xxx........................................................................................................................................................ssss.............................................................................................................................................................................................................................................................................................................................................................................ss.......................................xx.............................................................................................................................................. 1728s ../../../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................................................................................................ 1765s ../../../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.................................................. 1766s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_groupby_shift_diff.py ......................................... 1766s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_groupby_subclass.py .....s................................................................. 1766s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_grouping.py ........................................................................... 1766s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_index_as_string.py .................. 1768s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_indexing.py ............................................................................................................................................................................ 1768s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_libgroupby.py ........................... 1768s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_min_max.py ...................... 1768s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_missing.py ......................... 1769s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_nth.py ................................................................................................................................................................................................................... 1769s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_nunique.py ............ 1769s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_pipe.py .. 1770s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_quantile.py ..................................................................................................x....x....................................................................................................................................................................................................................... 1803s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_raises.py ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1809s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_rank.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 1809s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_sample.py .............. 1814s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_size.py .......x....x....x....x....x....x....x....x...............ss 1814s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_skew.py . 1814s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py .............................s 1817s ../../../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................ 1817s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss 1846s ../../../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.................................................................................................................................................................................................... 1846s 1846s =============================== warnings summary =============================== 1846s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py:21 1846s /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 1846s pytestmark = pytest.mark.single_cpu 1846s 1846s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py:229 1846s /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 1846s @pytest.mark.single_cpu 1846s 1846s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_groupby_dropna.py:248 1846s /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 1846s @pytest.mark.arm_slow 1846s 1846s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_numba.py:10 1846s /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 1846s pytestmark = pytest.mark.single_cpu 1846s 1846s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_nunique.py:19 1846s /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 1846s @pytest.mark.slow 1846s 1846s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py:907 1846s /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 1846s @pytest.mark.single_cpu 1846s 1846s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_value_counts.py:86 1846s /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 1846s @pytest.mark.slow 1846s 1846s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py:13 1846s /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 1846s pytestmark = pytest.mark.single_cpu 1846s 1846s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_transform.py:761 1846s /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 1846s @pytest.mark.slow 1846s 1846s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_transform.py:810 1846s /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 1846s @pytest.mark.slow 1846s 1846s test_categorical.py::test_basic 1846s /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) 1846s return reduction(axis=axis, out=out, **passkwargs) 1846s 1846s test_categorical.py: 16 warnings 1846s /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. 1846s op_result = getattr(gb, reduction_func)(*args) 1846s 1846s test_function.py::test_axis1_numeric_only[corrwith-True] 1846s test_function.py::test_axis1_numeric_only[corrwith-False] 1846s test_function.py::test_axis1_numeric_only[corrwith-None] 1846s /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 1846s method(*args, **kwargs) 1846s 1846s test_function.py::test_axis1_numeric_only[skew-True] 1846s test_function.py::test_axis1_numeric_only[skew-False] 1846s test_function.py::test_axis1_numeric_only[skew-None] 1846s /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 1846s method(*args, **kwargs) 1846s 1846s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1846s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-2pg9x0w3' 1846s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1846s 1846s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1846s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-a8o0x_v0' 1846s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1846s 1846s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1846s = 26247 passed, 906 skipped, 1832 deselected, 162 xfailed, 42 xpassed, 35 warnings in 202.82s (0:03:22) = 1851s rdjoqkol test state = true 1851s + echo 'rdjoqkol test state = true' 1851s + for TEST_SUBSET in $modpath/tests/* 1851s + echo /usr/lib/python3/dist-packages/pandas/tests/indexes 1851s + grep -q -e __pycache__ 1851s + PANDAS_CI=1 1851s + LC_ALL=C.UTF-8 1851s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/indexes 1874s ============================= test session starts ============================== 1874s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1874s rootdir: /usr/lib/python3/dist-packages/pandas/tests/indexes 1874s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1874s asyncio: mode=Mode.STRICT 1874s collected 16064 items / 5 deselected / 16059 selected 1874s 1874s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_constructors.py .......s 1874s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_formats.py ............. 1874s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_indexing.py ............ 1874s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_pickle.py . 1874s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_reshape.py ..............s.... 1875s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_setops.py ............................................................ 1875s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_where.py . 1875s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_append.py ....... 1875s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_astype.py ........... 1875s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_category.py ......................................... 1875s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_constructors.py ..... 1875s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_equals.py ......ss 1875s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_fillna.py ... 1875s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_formats.py .. 1875s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_indexing.py ................................. 1876s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_map.py ..................... 1876s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/categorical/test_reindex.py ....... 1876s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimelike_/test_drop_duplicates.py ................................................................................................................ 1876s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimelike_/test_equals.py ..................... 1876s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimelike_/test_indexing.py ................ 1876s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimelike_/test_is_monotonic.py . 1876s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimelike_/test_nat.py ...................... 1877s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimelike_/test_sort_values.py ................................................................................... 1877s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimelike_/test_value_counts.py ............................................ 1877s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_astype.py .............................. 1877s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_factorize.py .................................................................................... 1877s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_fillna.py .. 1878s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_insert.py .............................................................................................................................................................................. 1878s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_isocalendar.py . 1878s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_repeat.py ........................................ 1878s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_shift.py .................................. 1879s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_snap.py ........................ 1879s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_to_frame.py .. 1879s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_to_period.py .................................. 1879s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/methods/test_to_series.py . 1879s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_asof.py .. 1880s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_constructors.py ...................................................................................................................................................................................................................................................... 1881s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_date_range.py ................................................................................................................................................................................................................. 1882s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_datetime.py ....................x.............. 1882s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_datetimelike.py . 1882s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_delete.py .. 1882s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_formats.py ................... 1882s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_freq_attr.py .......................... 1885s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_indexing.py ..................................................................................................................................................................................................................................................................................................................................................................................... 1885s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_join.py ...................... 1885s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_map.py ..... 1896s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_misc.py .......................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1896s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_npfuncs.py . 1897s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_ops.py ...................................................................................................X................................................................................................ 1899s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_partial_slicing.py .................................. 1899s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_pickle.py ...... 1899s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_reindex.py .. 1899s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_scalar_compat.py ...................................................................................................................... 1900s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_setops.py .......................................................................................................................... 1901s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_timezones.py ................................................................................................................................................................................................................. 1901s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_unique.py ........................ 1902s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_astype.py ....................................x........................................................................................................................... 1902s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_base.py .......... 1902s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_constructors.py ..........................................................................................................................................................................................................................................................................ssssssss.......................................s.................s.....s.....s.....s....................................ssssssss.......................................s.................s.....s.....s.....s.................... 1902s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_equals.py .... 1903s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_formats.py ........ 1903s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_indexing.py .............................................................................................................................................................................................................................................................................. 1904s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_interval.py ......................................................................................................................................................................................................................................................... 1905s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_interval_range.py ....................................................................................................................................................... 1905s ../../../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 1905s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_join.py ... 1905s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_pickle.py ... 1906s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/interval/test_setops.py ................................................................................. 1906s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_analytics.py ...................................... 1906s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_astype.py ... 1906s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_compat.py ...... 1906s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_constructors.py ..................................................................................s................. 1906s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_conversion.py ...... 1906s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_copy.py .......... 1907s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_drop.py ............. 1907s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_duplicates.py .................................................. 1907s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_equivalence.py .............. 1907s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_formats.py ............. 1907s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_get_level_values.py ....... 1907s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_get_set.py ................... 1908s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_indexing.py ..................................................................................................................................... 1910s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_integrity.py ................ 1910s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_isin.py .............. 1910s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_join.py ........................................................... 1910s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_lexsort.py .. 1911s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_missing.py ...x.. 1911s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_monotonic.py ........... 1911s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_names.py ............................... 1911s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_partial_indexing.py ..... 1911s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_pickle.py . 1911s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_reindex.py ............ 1911s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_reshape.py ........... 1913s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_setops.py ............................................................................................................................................................................................................sss................................................................... 1914s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_sorting.py ......................... 1914s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_take.py ... 1914s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/numeric/test_astype.py ................... 1914s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/numeric/test_indexing.py ..............................................................................................................................................ss.......................................... 1914s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/numeric/test_join.py ........... 1915s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/numeric/test_numeric.py ............................................................................................... 1915s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/numeric/test_setops.py .................... 1915s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/object/test_astype.py .. 1916s ../../../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. 1916s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_asfreq.py ....... 1916s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_astype.py .......... 1916s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_factorize.py .. 1916s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_fillna.py . 1916s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_insert.py ... 1916s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_is_full.py . 1916s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_repeat.py ...... 1916s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_shift.py ...... 1917s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/methods/test_to_timestamp.py ........ 1917s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_constructors.py ........................................................................... 1917s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_formats.py ...... 1917s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_freq_attr.py . 1918s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_indexing.py ......................................................................... 1918s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_join.py ........... 1918s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_monotonic.py .. 1918s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_partial_slicing.py .............. 1919s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_period.py ........................................................................................................................................ 1919s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_period_range.py ........ 1919s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_pickle.py .... 1919s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_resolution.py ......... 1919s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_scalar_compat.py ... 1919s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_searchsorted.py ........ 1919s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_setops.py .............. 1919s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_tools.py ............ 1919s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/ranges/test_constructors.py ............................. 1919s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/ranges/test_indexing.py ............... 1919s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/ranges/test_join.py .......... 1919s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/ranges/test_range.py ................................................................................. 1920s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/ranges/test_setops.py ................................................................... 1921s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_any_index.py ......................................................................................................................s......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1926s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_base.py .........................................................................................................................................................................x.............................................................................ssss....ss..........ss......ss................................................................................................................................sssss...........................................................................................................................................................................................................................................s.......................................................................................................s........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 1928s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_common.py ...........................................................................................................................................................................................................xxxxxxxxxxxxxxxxxxxxxxxxxxxxx.........................................................................................................................sssssssss...s....ss..........................xs.....................sss................................................sss....................................................................................s................s...............................................................................................................................................................................................................................................................................xx.............s............................ 1928s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_datetimelike.py ........................................ 1929s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_engines.py ......................................... 1929s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_frozen.py .......... 1929s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_index_new.py ............................................xxxxssss............................................................................................................. 1930s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_indexing.py ......................................................ss...............................s.................................................................................................................................................................................................................................................................................................s........................ 1932s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_numpy_compat.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ss..................... 1937s ../../../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... 1945s ../../../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 1945s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_subclass.py . 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/methods/test_astype.py .......... 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/methods/test_factorize.py .. 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/methods/test_fillna.py . 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/methods/test_insert.py ............... 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/methods/test_repeat.py . 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/methods/test_shift.py ...... 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_constructors.py .................... 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_delete.py ... 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_formats.py .... 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_freq_attr.py ........... 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_indexing.py .................................... 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_join.py ....... 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_ops.py .......... 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_pickle.py . 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_scalar_compat.py ........ 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_searchsorted.py ........ 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_setops.py ................................ 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_timedelta.py ........ 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/timedeltas/test_timedelta_range.py .................. 1946s 1946s =============================== warnings summary =============================== 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/base_class/test_indexing.py:62 1946s /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 1946s @pytest.mark.slow # to_flat_index takes a while 1946s 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/datetimes/test_date_range.py:214 1946s /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 1946s @pytest.mark.slow 1946s 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_duplicates.py:237 1946s /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 1946s @pytest.mark.arm_slow 1946s 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_indexing.py:833 1946s /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 1946s @pytest.mark.slow 1946s 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_integrity.py:127 1946s /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 1946s @pytest.mark.slow 1946s 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/multi/test_setops.py:51 1946s /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 1946s @pytest.mark.arm_slow 1946s 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/period/test_indexing.py:174 1946s /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 1946s @pytest.mark.arm_slow 1946s 1946s ../../../usr/lib/python3/dist-packages/pandas/tests/indexes/test_old_base.py:739 1946s /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 1946s @pytest.mark.arm_slow 1946s 1946s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1946s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-4z93yf7e' 1946s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1946s 1946s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1946s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-h9sd3k73' 1946s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1946s 1946s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1946s = 15625 passed, 383 skipped, 5 deselected, 46 xfailed, 5 xpassed, 10 warnings in 81.41s (0:01:21) = 1948s + echo 'rdjoqkol test state = true' 1948s + for TEST_SUBSET in $modpath/tests/* 1948s rdjoqkol test state = true 1948s + echo /usr/lib/python3/dist-packages/pandas/tests/indexing 1948s + grep -q -e __pycache__ 1948s + PANDAS_CI=1 1948s + LC_ALL=C.UTF-8 1948s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/indexing 1955s ============================= test session starts ============================== 1955s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1955s rootdir: /usr/lib/python3/dist-packages/pandas/tests/indexing 1955s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1955s asyncio: mode=Mode.STRICT 1955s collected 4376 items / 3 deselected / 4373 selected 1955s 1955s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/interval/test_interval.py .......................... 1956s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/interval/test_interval_new.py .................xxxx 1956s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_chaining_and_caching.py . 1956s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_datetime.py .. 1956s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_getitem.py ............................................................................ 1956s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_iloc.py ................ 1958s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_indexing_slow.py .......... 1959s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_loc.py ................................................................................................................................. 1959s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_multiindex.py ............... 1959s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_partial.py ............. 1959s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_setitem.py ........................... 1959s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_slice.py ............................. 1959s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_sorted.py ......... 1959s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_at.py ......................................... 1960s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_categorical.py ................................................................................................................. 1961s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py .............................. 1961s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_check_indexer.py ....................s.... 1962s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_coercion.py ..........xxxxxxx...............................................................xx........................................xxxx....x............................................................xxxxx..................xx...........ss........s......................................................................ss........s.....................................................................................................x 1962s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_datetime.py .........ss 1963s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_floats.py ............................................................................................................................................... 1963s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_iat.py ..... 1963s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_iloc.py .................................................................................................................................................................................................................. 1963s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_indexers.py ...... 1967s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_indexing.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 1970s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_loc.py .............................................................................................................................x.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s..................................................................................................................................................................................................................................................................................................................................................................s................................... 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_na_indexing.py .............................................................................................................................................................................................................................................................................. 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_partial.py .................................... 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_scalar.py ...................................... 1971s 1971s =============================== warnings summary =============================== 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/interval/test_interval.py:73 1971s /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 1971s @pytest.mark.slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/multiindex/test_chaining_and_caching.py:43 1971s /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 1971s @pytest.mark.slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:203 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:225 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:262 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:279 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:299 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:327 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:339 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:359 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:369 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:388 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:394 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:401 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:409 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:424 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_chaining_and_caching.py:425 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_loc.py:1022 1971s /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 1971s @pytest.mark.arm_slow 1971s 1971s ../../../usr/lib/python3/dist-packages/pandas/tests/indexing/test_loc.py:1969 1971s /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 1971s @pytest.mark.slow 1971s 1971s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1971s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-k0cqx1av' 1971s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1971s 1971s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1971s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-k9eav1k4' 1971s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1971s 1971s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1971s === 4335 passed, 11 skipped, 3 deselected, 27 xfailed, 21 warnings in 17.27s === 1972s + echo 'rdjoqkol test state = true' 1972s + for TEST_SUBSET in $modpath/tests/* 1972s rdjoqkol test state = true 1972s + echo /usr/lib/python3/dist-packages/pandas/tests/interchange 1972s + grep -q -e __pycache__ 1972s + PANDAS_CI=1 1972s + LC_ALL=C.UTF-8 1972s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/interchange 1974s ============================= test session starts ============================== 1974s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1974s rootdir: /usr/lib/python3/dist-packages/pandas/tests/interchange 1974s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1974s asyncio: mode=Mode.STRICT 1974s collected 101 items 1974s 1974s ../../../usr/lib/python3/dist-packages/pandas/tests/interchange/test_impl.py ..sssssssss..............sss........s. 1974s ../../../usr/lib/python3/dist-packages/pandas/tests/interchange/test_spec_conformance.py ................ 1974s ../../../usr/lib/python3/dist-packages/pandas/tests/interchange/test_utils.py ................sssssssssssssssssssssssssssssss 1974s 1974s =============================== warnings summary =============================== 1974s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1974s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-3fkrgq59' 1974s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1974s 1974s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1974s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-jpcli4de' 1974s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1974s 1974s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1974s ================== 57 passed, 44 skipped, 2 warnings in 0.44s ================== 1975s rdjoqkol test state = true 1975s + echo 'rdjoqkol test state = true' 1975s + for TEST_SUBSET in $modpath/tests/* 1975s + echo /usr/lib/python3/dist-packages/pandas/tests/internals 1975s + grep -q -e __pycache__ 1975s + PANDAS_CI=1 1975s + LC_ALL=C.UTF-8 1975s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/internals 1977s ============================= test session starts ============================== 1977s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1977s rootdir: /usr/lib/python3/dist-packages/pandas/tests/internals 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 1977s collected 249 items 1977s 1977s ../../../usr/lib/python3/dist-packages/pandas/tests/internals/test_api.py ... 1978s ../../../usr/lib/python3/dist-packages/pandas/tests/internals/test_internals.py .................................................................................................................................................................................................................................................... 1978s ../../../usr/lib/python3/dist-packages/pandas/tests/internals/test_managers.py .. 1978s 1978s =============================== warnings summary =============================== 1978s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 1978s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-ce92qf2q' 1978s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 1978s 1978s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 1978s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-9d7hst9v' 1978s session.config.cache.set(STEPWISE_CACHE_DIR, []) 1978s 1978s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 1978s ======================= 249 passed, 2 warnings in 1.80s ======================== 1979s rdjoqkol test state = true 1979s + echo 'rdjoqkol test state = true' 1979s + for TEST_SUBSET in $modpath/tests/* 1979s + echo /usr/lib/python3/dist-packages/pandas/tests/io 1979s + grep -q -e __pycache__ 1979s + PANDAS_CI=1 1979s + LC_ALL=C.UTF-8 1979s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/io 1989s ============================= test session starts ============================== 1989s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 1989s rootdir: /usr/lib/python3/dist-packages/pandas/tests/io 1989s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 1989s asyncio: mode=Mode.STRICT 1989s collected 13155 items / 142 deselected / 5 skipped / 13013 selected 1989s 1989s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_odf.py ... 1989s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_odswriter.py .... 1990s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_openpyxl.py .................................................. 1999s ../../../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. 2000s ../../../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 2004s ../../../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... 2005s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_bar.py ....................................................................................................................... 2005s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_exceptions.py ... 2005s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_format.py ......................................................................................................... 2005s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_highlight.py ................................................................................................ 2006s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_html.py ........................................................................................... 2006s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_matplotlib.py ........................................................... 2006s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_non_unique.py ......... 2007s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_style.py ................................................................................................................................................................................................. 2008s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_to_latex.py ............................................................................................................................................................ 2008s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_to_string.py ..... 2008s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/style/test_tooltip.py .... 2008s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_console.py ........... 2008s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_css.py ............................................................................................... 2008s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_eng_formatting.py ...... 2010s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_format.py ......................................................................................................................................................................................................................................s....................................... 2011s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_info.py ........................x....x.s 2011s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_printing.py .......ss..s................. 2011s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_series_info.py ........x..... 2011s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_to_csv.py ..........s................................................................................. 2012s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_to_excel.py .......................................................................................................................................................................................................................................................................................................................................................................................................................... 2013s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_to_html.py ............................................................................................................................................................................................................................................................................................................................................................................. 2014s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_to_latex.py ........................................................................................... 2014s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_to_string.py ............................................s 2014s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_compression.py ........sssssss............................................... 2014s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_deprecated_kwargs.py . 2015s ../../../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..................... 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_json_table_schema_ext_dtype.py ..................... 2015s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_normalize.py ..................................................... 2020s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_pandas.py ...........................................................................................................xxxx................................xxx..............................ssssss................................................................................................................................s........xxxxxxxxxxxxxxxxxx................................................................xx.............s.....x........ssssssssssssssssssssssssssssssss...sssss 2020s ../../../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........... 2021s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_ujson.py s........................................................................................................................s....s................................................................................... 2023s ../../../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 2023s ../../../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 2024s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_data_list.py ...s...s...s...s 2024s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_decimal.py ......ss...s 2025s ../../../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 2025s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_float.py ...s.......s.....................sss....x.....x...ss 2026s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_index.py ......ss......ss...s............ssss...s...s...s...s...s...s...s 2026s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_inf.py ......ss......ss...s 2026s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_ints.py ...s............ssss...s......ss...s.........sss.........sss......ss......ss...s 2026s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_iterator.py ...s...s...s.........sss...s 2026s ../../../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 2026s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_verbose.py ...s...s 2027s ../../../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 2031s ../../../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 2031s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/dtypes/test_empty.py ...s...s...s...s...s...s...s...s........................ssssssss 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_c_parser_only.py ..................................................ss.......................... 2034s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_comment.py ......ss.......x.sss...s...s...s..................ssssss......ssxx.s 2038s ../../../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 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_concatenate_chunks.py ss 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_converters.py ...s............ssss...s...s...s......ss...s...s 2038s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_dialect.py ...s...s...s......................................................ssssssssssssssssss..................ssssss 2040s ../../../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 2040s ../../../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 2041s ../../../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 2041s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_mangle_dupes.py ...s...s...s.........sss.........sss...s...s...s......ss 2042s ../../../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 2047s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py ................ssss.....ssssssssssssssssss 2068s ../../../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 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_python_parser_only.py ..................................................................................... 2069s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_quoting.py .........sss......ss...s..................ssssss............ssss...............sssss......ss......ss......ss 2070s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_read_fwf.py ..........................................................................sss.. 2070s ../../../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 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_textreader.py ........................... 2071s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_unsupported.py ..........s...s..xs...s 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_upcast.py ...........................ssss 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/usecols/test_parse_dates.py ......ss...s...s...s............ssss 2072s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/usecols/test_strings.py ...s...s......ss......ss 2072s ../../../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 2075s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py ....x................ 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_categorical.py ..... 2076s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_compat.py .... 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_complex.py ......... 2077s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_errors.py ................ 2087s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py ..........................................................................................................................................................................xxxxxxxxxxxxxxxxxxx.. 2087s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_keys.py .... 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_put.py ...................... 2088s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_pytables_missing.py s 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_read.py ....................s 2089s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_retain_attributes.py .. 2091s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_round_trip.py ..............................s 2098s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_select.py ...x.....x............... 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py .............................x............... 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_subclass.py .. 2101s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_time_series.py ... 2103s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_timezones.py ....................................................................... 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_byteswap.py .......... 2106s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas.py ... 2107s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py ....................... 2108s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_xport.py ....... 2110s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_clipboard.py ........................................................................................................................................................................................................................................XXX..ssssss. 2111s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_common.py .......................................................s...ss.......sss......ss........ss.......s......................................... 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_compression.py ........................................................................................................................................ 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_fsspec.py .........ssssssssss.........ss 2114s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_gcs.py ssssssssssssssssss. 2129s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py .........ssssss.................................................................................................................................s...................... 2130s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py .ssss.ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.ssssssss 2139s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_pickle.py .............................................................................................................. 2139s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_s3.py sss 2139s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_spss.py .......s. 2152s ../../../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....................... 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_stata.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 2167s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_user_agent.py sssssssssssssssssssss 2168s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_to_xml.py ........................................................................s...............................................................ss 2172s ../../../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. 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml_dtypes.py .............................................. 2173s 2173s =============================== warnings summary =============================== 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:878 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:879 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:888 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:900 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_readers.py:917 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/excel/test_style.py:275 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/formats/test_info.py:513 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_compression.py:43 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_pandas.py:1043 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_pandas.py:1044 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_pandas.py:1309 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/json/test_pandas.py:1882 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/conftest.py:102 2173s /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 2173s _pyarrow_parsers_only = [pytest.param(_pyarrowParser, marks=pytest.mark.single_cpu)] 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/conftest.py:166 2173s /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 2173s mark = pytest.mark.single_cpu if parser.engine == "pyarrow" else () 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_chunksize.py:165 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_file_buffer_url.py:30 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_file_buffer_url.py:31 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/common/test_file_buffer_url.py:46 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/dtypes/test_categorical.py:109 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_c_parser_only.py:155 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_c_parser_only.py:295 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_c_parser_only.py:549 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_index_col.py:234 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_multi_thread.py:25 2173s /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 2173s pytest.mark.single_cpu, 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_multi_thread.py:26 2173s /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 2173s pytest.mark.slow, 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:24 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:25 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:55 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:56 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:75 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:274 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_network.py:290 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_read_fwf.py:1016 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/parser/test_read_fwf.py:1017 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py:29 2173s /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 2173s pytestmark = pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_categorical.py:17 2173s /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 2173s pytestmark = pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_errors.py:24 2173s /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 2173s pytestmark = pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py:37 2173s /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 2173s pytestmark = pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_keys.py:13 2173s /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 2173s pytestmark = pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_put.py:25 2173s /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 2173s pytestmark = pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_read.py:28 2173s /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 2173s pytestmark = pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_retain_attributes.py:18 2173s /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 2173s pytestmark = pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_round_trip.py:25 2173s /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 2173s pytestmark = pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_select.py:27 2173s /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 2173s pytestmark = pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py:37 2173s /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 2173s pytestmark = pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_time_series.py:13 2173s /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 2173s pytestmark = pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:42 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:50 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:64 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:75 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:84 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_sas7bdat.py:94 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/sas/test_xport.py:42 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_clipboard.py:235 2173s /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 2173s @pytest.mark.clipboard 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_clipboard.py:245 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_clipboard.py:246 2173s /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 2173s @pytest.mark.clipboard 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_clipboard.py:404 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_compression.py:205 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_compression.py:219 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_fsspec.py:192 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_fsspec.py:216 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_fsspec.py:229 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_gcs.py:48 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:228 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:229 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:246 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:247 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:256 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:388 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:389 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:395 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:396 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:397 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:403 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:413 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:424 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:429 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:434 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:440 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:445 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:450 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:458 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:524 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:525 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:531 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:532 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:719 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:767 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:1273 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:1450 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_html.py:1451 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:378 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:379 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:804 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:817 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:829 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_parquet.py:1232 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_s3.py:20 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_s3.py:32 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:546 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:554 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:575 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:591 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:602 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:614 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:627 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:640 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:653 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:675 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:688 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:699 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:709 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:728 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:747 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:785 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:825 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:884 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:938 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:2991 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:3027 2173s /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 2173s @pytest.mark.db 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_stata.py:1834 2173s /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 2173s @pytest.mark.slow 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_user_agent.py:21 2173s /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 2173s pytest.mark.single_cpu, 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_to_xml.py:1364 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:311 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:312 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:505 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:506 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:526 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:527 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:1450 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:1451 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:1993 2173s /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 2173s @pytest.mark.network 2173s 2173s ../../../usr/lib/python3/dist-packages/pandas/tests/io/xml/test_xml.py:1994 2173s /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 2173s @pytest.mark.single_cpu 2173s 2173s pytables/test_append.py: 29 warnings 2173s pytables/test_categorical.py: 10 warnings 2173s pytables/test_compat.py: 4 warnings 2173s pytables/test_complex.py: 13 warnings 2173s pytables/test_errors.py: 16 warnings 2173s pytables/test_file_handling.py: 180 warnings 2173s pytables/test_keys.py: 4 warnings 2173s pytables/test_put.py: 25 warnings 2173s pytables/test_read.py: 28 warnings 2173s pytables/test_retain_attributes.py: 3 warnings 2173s pytables/test_round_trip.py: 79 warnings 2173s pytables/test_select.py: 47 warnings 2173s pytables/test_store.py: 60 warnings 2173s pytables/test_subclass.py: 3 warnings 2173s pytables/test_time_series.py: 3 warnings 2173s pytables/test_timezones.py: 75 warnings 2173s test_common.py: 4 warnings 2173s /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 2173s warnings.warn(warn_hdf_platform) 2173s 2173s xml/test_xml.py::test_wrong_file_path[lxml] 2173s xml/test_xml.py::test_wrong_file_path[etree] 2173s /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. 2173s read_xml(filename, parser=parser) 2173s 2173s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2173s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-soe082wp' 2173s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2173s 2173s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2173s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-dq8zxick' 2173s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2173s 2173s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2173s = 10187 passed, 2683 skipped, 142 deselected, 145 xfailed, 3 xpassed, 720 warnings in 192.69s (0:03:12) = 2175s + echo 'rdjoqkol test state = true' 2175s + for TEST_SUBSET in $modpath/tests/* 2175s + echo /usr/lib/python3/dist-packages/pandas/tests/libs 2175s + grep -q -e __pycache__ 2175s rdjoqkol test state = true 2175s + PANDAS_CI=1 2175s + LC_ALL=C.UTF-8 2175s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/libs 2177s ============================= test session starts ============================== 2177s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2177s rootdir: /usr/lib/python3/dist-packages/pandas/tests/libs 2177s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2177s asyncio: mode=Mode.STRICT 2177s collected 2257 items 2177s 2180s ../../../usr/lib/python3/dist-packages/pandas/tests/libs/test_hashtable.py ..............s.....................................................................s.............s.......................................................s.............s..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 2180s ../../../usr/lib/python3/dist-packages/pandas/tests/libs/test_join.py ................. 2180s ../../../usr/lib/python3/dist-packages/pandas/tests/libs/test_lib.py ..........................................................................ss...... 2180s 2180s =============================== warnings summary =============================== 2180s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2180s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-7vwreomh' 2180s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2180s 2180s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2180s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-qsqq7921' 2180s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2180s 2180s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2180s ================= 2250 passed, 7 skipped, 2 warnings in 2.73s ================== 2180s + echo 'rdjoqkol test state = true' 2180s + for TEST_SUBSET in $modpath/tests/* 2180s rdjoqkol test state = true 2180s + echo /usr/lib/python3/dist-packages/pandas/tests/plotting 2180s + grep -q -e __pycache__ 2180s + PANDAS_CI=1 2180s + LC_ALL=C.UTF-8 2180s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/plotting 2186s ============================= test session starts ============================== 2186s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2186s rootdir: /usr/lib/python3/dist-packages/pandas/tests/plotting 2186s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2186s asyncio: mode=Mode.STRICT 2186s collected 1350 items / 212 deselected / 1138 selected 2186s 2218s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py ..................................................XX................................................................................................................................x...................................................................................... 2225s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_color.py ......................................................................................... 2226s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_groupby.py ...... 2227s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_legend.py x..................... 2235s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_subplots.py .........x....................XX................................................................... 2237s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py ............................. 2237s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_backend.py .....s. 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py .................................................. 2242s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_common.py ... 2245s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_converter.py ............................................ 2274s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_datetimelike.py ...............................................................................................................x..........................................x......................x...............x..... 2275s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_groupby.py ................. 2282s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py ...........................x..x...................................................... 2291s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py s................................... 2299s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py ...............................XXXX.............................x........................................................x......................... 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_style.py ...................................... 2300s 2300s =============================== warnings summary =============================== 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:51 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:56 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:63 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:74 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:87 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:94 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:104 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:121 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:145 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:153 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:163 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:189 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:198 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:236 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:245 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:925 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:944 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:953 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:962 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1611 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1630 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1641 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1652 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1665 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1672 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1680 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1695 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1713 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1746 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1756 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:1768 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame.py:2490 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_subplots.py:35 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_subplots.py:65 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_subplots.py:80 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_frame_subplots.py:280 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:29 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:129 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:169 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:186 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/frame/test_hist_box_by.py:305 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:60 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:390 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:402 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:458 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:469 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:476 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:489 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:505 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:513 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:524 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:531 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:547 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:562 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:570 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:583 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:592 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:603 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:618 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_boxplot_method.py:645 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_converter.py:46 2300s /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 2300s @pytest.mark.single_cpu 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_converter.py:67 2300s /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 2300s @pytest.mark.single_cpu 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_datetimelike.py:536 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:86 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:252 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:257 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:276 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:281 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:297 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:317 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:326 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:336 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:343 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:816 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:845 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:854 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:864 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_hist_method.py:873 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:150 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:159 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:193 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:219 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:229 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:244 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:258 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_misc.py:273 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:54 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:59 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:64 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:77 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:81 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:679 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:698 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:705 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:725 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:732 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:739 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:743 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:747 2300s /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 2300s @pytest.mark.slow 2300s 2300s ../../../usr/lib/python3/dist-packages/pandas/tests/plotting/test_series.py:977 2300s /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 2300s @pytest.mark.slow 2300s 2300s test_datetimelike.py: 33202 warnings 2300s /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. 2300s pickle.dump(fig, path) 2300s 2300s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2300s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-_lsbyenp' 2300s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2300s 2300s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2300s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-wq3rnyrk' 2300s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2300s 2300s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2300s = 1117 passed, 2 skipped, 212 deselected, 11 xfailed, 8 xpassed, 33304 warnings in 116.93s (0:01:56) = 2301s rdjoqkol test state = true 2301s + echo 'rdjoqkol test state = true' 2301s + for TEST_SUBSET in $modpath/tests/* 2301s + echo /usr/lib/python3/dist-packages/pandas/tests/reductions 2301s + grep -q -e __pycache__ 2301s + PANDAS_CI=1 2301s + LC_ALL=C.UTF-8 2301s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/reductions 2303s ============================= test session starts ============================== 2303s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2303s rootdir: /usr/lib/python3/dist-packages/pandas/tests/reductions 2303s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2303s asyncio: mode=Mode.STRICT 2303s collected 539 items 2303s 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/reductions/test_reductions.py ..................................................................................................................................................................................................................................................................................................................................s............................................................................................................................... 2305s ../../../usr/lib/python3/dist-packages/pandas/tests/reductions/test_stat_reductions.py ......................................................................................... 2305s 2305s =============================== warnings summary =============================== 2305s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2305s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-up5qpps3' 2305s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2305s 2305s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2305s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-lcw_4mhv' 2305s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2305s 2305s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2305s ================== 538 passed, 1 skipped, 2 warnings in 2.14s ================== 2305s + echo 'rdjoqkol test state = true' 2305s rdjoqkol test state = true 2305s + for TEST_SUBSET in $modpath/tests/* 2305s + echo /usr/lib/python3/dist-packages/pandas/tests/resample 2305s + grep -q -e __pycache__ 2306s + PANDAS_CI=1 2306s + LC_ALL=C.UTF-8 2306s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/resample 2309s ============================= test session starts ============================== 2309s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2309s rootdir: /usr/lib/python3/dist-packages/pandas/tests/resample 2309s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2309s asyncio: mode=Mode.STRICT 2309s collected 3869 items 2309s 2320s ../../../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......................................................................................................................................................................................................................................................................................................................................................................................................... 2385s ../../../usr/lib/python3/dist-packages/pandas/tests/resample/test_datetime_index.py ................................................................................ssss.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................x...................................................................................................................................................................................................................................................................................................................... 2398s ../../../usr/lib/python3/dist-packages/pandas/tests/resample/test_period_index.py ...................................................................................................................................................................................................................................................................................................................................................................x............................................. 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/resample/test_resample_api.py ................................................................................................................... 2400s ../../../usr/lib/python3/dist-packages/pandas/tests/resample/test_resampler_grouper.py s................................................ 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/resample/test_time_grouper.py .........................x...................... 2401s ../../../usr/lib/python3/dist-packages/pandas/tests/resample/test_timedelta.py ....................... 2401s 2401s =============================== warnings summary =============================== 2401s test_period_index.py::TestPeriodIndex::test_monthly_convention_span 2401s /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. 2401s expected = expected.fillna(method="bfill") 2401s 2401s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2401s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-m7ycx4nq' 2401s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2401s 2401s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2401s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-keyuzoex' 2401s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2401s 2401s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2401s ====== 3813 passed, 5 skipped, 51 xfailed, 3 warnings in 92.30s (0:01:32) ====== 2402s + echo 'rdjoqkol test state = true' 2402s rdjoqkol test state = true 2402s + for TEST_SUBSET in $modpath/tests/* 2402s + echo /usr/lib/python3/dist-packages/pandas/tests/reshape 2402s + grep -q -e __pycache__ 2402s + PANDAS_CI=1 2402s + LC_ALL=C.UTF-8 2402s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/reshape 2405s ============================= test session starts ============================== 2405s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2405s rootdir: /usr/lib/python3/dist-packages/pandas/tests/reshape 2405s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2405s asyncio: mode=Mode.STRICT 2405s collected 2582 items / 1 deselected / 2581 selected 2405s 2405s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_append.py .................................................................................. 2406s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_append_common.py ...........................sssssssss....................................................... 2406s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_categorical.py ............. 2406s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_concat.py ........................................................................................... 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_dataframe.py ..................... 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_datetimes.py ................................x....... 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_empty.py .....................s.....s.....s.....s.....s.......... 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_index.py ............................................................. 2408s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_invalid.py .... 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_series.py ............. 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/concat/test_sort.py .......... 2409s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/merge/test_join.py ....................................................................... 2413s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/merge/test_merge.py ..............................................................................................................................................................................................................................................................................................................................................................................................................................ssssssss..............................................................................................................................................................................................................................ss..........ssss 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/merge/test_merge_asof.py .s................................................................................................s.....................s.................ss. 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/merge/test_merge_cross.py ................. 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/merge/test_merge_index_as_string.py ................................................................................ 2414s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/merge/test_merge_ordered.py .................. 2415s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/merge/test_multi.py ........................................ 2416s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_crosstab.py ..................................... 2417s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_cut.py ............................................................................................................ 2417s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_from_dummies.py ......................................... 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_get_dummies.py ................................................................................................................................................... 2418s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_melt.py ...................................................... 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_pivot.py .....................................................................xx....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_pivot_multilevel.py .......... 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_qcut.py .......................................................................... 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_union_categoricals.py .......................................... 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_util.py ................. 2425s 2425s =============================== warnings summary =============================== 2425s ../../../usr/lib/python3/dist-packages/pandas/tests/reshape/test_pivot.py:2062 2425s /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 2425s @pytest.mark.slow 2425s 2425s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2425s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-s2bngetn' 2425s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2425s 2425s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2425s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-0rkwzinp' 2425s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2425s 2425s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2425s ==== 2545 passed, 33 skipped, 1 deselected, 3 xfailed, 3 warnings in 21.68s ==== 2426s + echo 'rdjoqkol test state = true' 2426s + for TEST_SUBSET in $modpath/tests/* 2426s + echo /usr/lib/python3/dist-packages/pandas/tests/scalar 2426s + grep -q -e __pycache__ 2426s rdjoqkol test state = true 2426s + PANDAS_CI=1 2426s + LC_ALL=C.UTF-8 2426s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/scalar 2431s ============================= test session starts ============================== 2431s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2431s rootdir: /usr/lib/python3/dist-packages/pandas/tests/scalar 2431s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2431s asyncio: mode=Mode.STRICT 2431s collected 4311 items 2431s 2431s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/interval/test_arithmetic.py ..................... 2431s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/interval/test_interval.py .............................................................................. 2431s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/interval/test_ops.py ................................................................................................................................................................................ 2431s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/period/test_asfreq.py ....................... 2432s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/period/test_period.py ...................................................................................................................................................................................................................................................................................................................................................................................................... 2432s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/test_na_scalar.py .....................................................................................ss.....ss.....ss................................................................................................................................................................................ 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/test_nat.py .....................................................................................................................s............s............................................................................................................................................................................................................................ 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timedelta/test_arithmetic.py ................................................................................................................................ 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timedelta/test_constructors.py ................................................................................................................................. 2433s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timedelta/test_formats.py .......... 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timedelta/test_timedelta.py ......................................................................................................................................................................................................................................................................x............ 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_arithmetic.py ....................................................................................................... 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_comparisons.py .............................. 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_constructors.py ....................xxx..................................................................................... 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_formats.py .................... 2435s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_rendering.py .................................................... 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_timestamp.py .......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ss.......................................................................................x........................................................................................................................................................................................................................................................................................................................................... 2439s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_timezones.py ........................................................................................................................................................................................................................................................................................................... 2441s ../../../usr/lib/python3/dist-packages/pandas/tests/scalar/timestamp/test_unary_ops.py ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 2441s 2441s =============================== warnings summary =============================== 2441s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2441s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-0u0nnho3' 2441s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2441s 2441s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2441s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-ao9bvly4' 2441s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2441s 2441s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2441s =========== 4296 passed, 10 skipped, 5 xfailed, 2 warnings in 13.22s =========== 2441s rdjoqkol test state = true 2441s + echo 'rdjoqkol test state = true' 2441s + for TEST_SUBSET in $modpath/tests/* 2441s + echo /usr/lib/python3/dist-packages/pandas/tests/series 2441s + grep -q -e __pycache__ 2441s + PANDAS_CI=1 2441s + LC_ALL=C.UTF-8 2441s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/series 2447s ============================= test session starts ============================== 2447s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2447s rootdir: /usr/lib/python3/dist-packages/pandas/tests/series 2447s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2447s asyncio: mode=Mode.STRICT 2447s collected 12568 items / 1 deselected / 12567 selected 2447s 2447s ../../../usr/lib/python3/dist-packages/pandas/tests/series/accessors/test_cat_accessor.py ................... 2469s ../../../usr/lib/python3/dist-packages/pandas/tests/series/accessors/test_dt_accessor.py ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 2469s ../../../usr/lib/python3/dist-packages/pandas/tests/series/accessors/test_sparse_accessor.py . 2469s ../../../usr/lib/python3/dist-packages/pandas/tests/series/accessors/test_str_accessor.py .. 2473s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_datetime.py ................. 2473s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_delitem.py .... 2473s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_get.py ............ 2474s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_getitem.py .............................................................................................. 2490s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_indexing.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 2491s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_mask.py .... 2491s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_set_value.py ... 2515s ../../../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................................................................................................................................................................................................... 2515s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_take.py .... 2516s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_where.py ......................................................................................................................................................................................................... 2516s ../../../usr/lib/python3/dist-packages/pandas/tests/series/indexing/test_xs.py ...... 2516s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_add_prefix_suffix.py ... 2520s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_align.py ............................................................................................................... 2520s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_argsort.py ..... 2520s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_asof.py ....... 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_astype.py ................................................s....s..........................................................................x........sssssssss................. 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_autocorr.py . 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_between.py ....... 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_clip.py ....s.....s.....s.....s.....s.....s.....s.....s.....s.....s........... 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_combine.py . 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_combine_first.py ........................... 2521s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_compare.py ............ 2523s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_convert_dtypes.py .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s......s 2523s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_copy.py .......... 2523s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_count.py ... 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_cov_corr.py ................ 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_describe.py ...................................................... 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_diff.py ....... 2524s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_drop.py ............................. 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_drop_duplicates.py ..................................................................ssssss.............................................................................................................................................................................................................................................................................................................ss 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_dropna.py ........ 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_dtypes.py . 2525s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_duplicated.py .................. 2526s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_equals.py ..................................................... 2526s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_explode.py ...............ss 2527s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_fillna.py .............................................................................................................................. 2527s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_get_numeric_data.py . 2527s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_head_tail.py . 2527s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_infer_objects.py ....... 2529s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_interpolate.py x.........................................................................................................................................................................................................x.x............. 2529s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_is_monotonic.py .. 2529s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_is_unique.py ........ 2529s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_isin.py ........................................ 2529s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_isna.py .. 2529s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_item.py . 2530s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_map.py ......ss...............................xxx........................................... 2530s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_matmul.py . 2530s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_nlargest.py ................................................................. 2530s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_nunique.py .. 2530s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_pct_change.py ............. 2530s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_pop.py . 2530s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_quantile.py ................................... 2532s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_rank.py .......................................................................................................ssssssssssssssssssssssssssssss........................................................ssssssssssssssss.....ss.....ss.....ss.....ss.....ss.....................................................ssssssssssssssssss.............................................ssssssssssssssssss.............................................ssssssssssssssssss.............................................ssssssssssssssssss.............................................ssssssssssssssssss. 2532s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_reindex.py ................................... 2532s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_reindex_like.py .. 2532s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_rename.py ................ 2532s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_rename_axis.py ..... 2532s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_repeat.py ... 2533s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_replace.py ...........................s......................................................................... 2533s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_reset_index.py ........s...... 2533s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_round.py .................................. 2533s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_searchsorted.py ........ 2533s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_set_name.py .. 2533s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_size.py ....... 2533s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_sort_index.py ............................................ 2533s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_sort_values.py .............. 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_to_csv.py ................................... 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_to_dict.py ...... 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_to_frame.py ... 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_to_numpy.py ... 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_tolist.py ..........sss 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_truncate.py .... 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_tz_localize.py ................... 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_unique.py ....... 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_unstack.py ....... 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_update.py ....................s..... 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_value_counts.py ............ 2535s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_values.py ... 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_view.py .................................................. 2536s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_api.py ............................................................................................................................................................................................ 2545s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_arithmetic.py ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................x...............................x............. 2546s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_constructors.py .....................................................................................................................................................................................................................................x.........x............................................................................................s.................................xx.................................................sssssss.s................... 2547s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_cumulative.py ....................................... 2547s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_iteration.py ....... 2547s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_logical_ops.py ..........................x 2547s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_missing.py ...x.. 2547s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_npfuncs.py .... 2547s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_reductions.py ....s............... 2549s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_repr.py ................................................... 2550s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_subclass.py ......... 2552s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_ufunc.py .....................................................................xxxx........................................................................................................................................ 2563s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_unary.py .......................... 2565s ../../../usr/lib/python3/dist-packages/pandas/tests/series/test_validate.py ............................ 2565s 2565s =============================== warnings summary =============================== 2565s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_isin.py:200 2565s /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 2565s @pytest.mark.slow 2565s 2565s ../../../usr/lib/python3/dist-packages/pandas/tests/series/methods/test_rank.py:514 2565s /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 2565s @pytest.mark.single_cpu 2565s 2565s test_logical_ops.py::TestSeriesLogicalOps::test_int_dtype_different_index_not_bool 2565s /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. 2565s result = np.bitwise_xor(ser1, ser2) 2565s 2565s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2565s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-douz17sv' 2565s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2565s 2565s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2565s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-1bz02nge' 2565s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2565s 2565s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2565s = 11943 passed, 596 skipped, 1 deselected, 28 xfailed, 5 warnings in 121.67s (0:02:01) = 2599s rdjoqkol test state = true 2599s + echo 'rdjoqkol test state = true' 2599s + for TEST_SUBSET in $modpath/tests/* 2599s + echo /usr/lib/python3/dist-packages/pandas/tests/strings 2599s + grep -q -e __pycache__ 2601s + PANDAS_CI=1 2601s + LC_ALL=C.UTF-8 2601s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/strings 2632s ============================= test session starts ============================== 2632s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2632s rootdir: /usr/lib/python3/dist-packages/pandas/tests/strings 2632s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2632s asyncio: mode=Mode.STRICT 2632s collected 3374 items 2632s 2636s ../../../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 2636s ../../../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 2636s ../../../usr/lib/python3/dist-packages/pandas/tests/strings/test_cat.py ................................................................ 2637s ../../../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 2638s ../../../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 2638s ../../../usr/lib/python3/dist-packages/pandas/tests/strings/test_get_dummies.py ..ss...ss. 2638s ../../../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 2638s ../../../usr/lib/python3/dist-packages/pandas/tests/strings/test_string_array.py .......................................................................sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss....ssss....ssss.s 2639s ../../../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....... 2639s 2639s =============================== warnings summary =============================== 2639s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2639s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-duocdtg7' 2639s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2639s 2639s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2639s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-h_1dbegk' 2639s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2639s 2639s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2639s ========== 2518 passed, 843 skipped, 13 xfailed, 2 warnings in 7.60s =========== 2639s rdjoqkol test state = true 2639s + echo 'rdjoqkol test state = true' 2639s + for TEST_SUBSET in $modpath/tests/* 2639s + echo /usr/lib/python3/dist-packages/pandas/tests/test_aggregation.py 2640s + grep -q -e __pycache__ 2640s + PANDAS_CI=1 2640s + LC_ALL=C.UTF-8 2640s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_aggregation.py 2646s ============================= test session starts ============================== 2646s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2646s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2646s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2646s asyncio: mode=Mode.STRICT 2646s collected 8 items 2646s 2646s ../../../usr/lib/python3/dist-packages/pandas/tests/test_aggregation.py ........ 2646s 2646s =============================== warnings summary =============================== 2646s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2646s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-wbjwewbg' 2646s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2646s 2646s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2646s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-dgzabxaw' 2646s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2646s 2646s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2646s ======================== 8 passed, 2 warnings in 0.04s ========================= 2646s + echo 'rdjoqkol test state = true' 2646s rdjoqkol test state = true 2646s + for TEST_SUBSET in $modpath/tests/* 2646s + echo /usr/lib/python3/dist-packages/pandas/tests/test_algos.py 2646s + grep -q -e __pycache__ 2647s + PANDAS_CI=1 2647s + LC_ALL=C.UTF-8 2647s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_algos.py 2651s ============================= test session starts ============================== 2651s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2651s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2651s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2651s asyncio: mode=Mode.STRICT 2651s collected 447 items 2651s 2656s ../../../usr/lib/python3/dist-packages/pandas/tests/test_algos.py ............................................................................................................................................................................................................................................................................................................................................................................................................................................................... 2656s 2656s =============================== warnings summary =============================== 2656s ../../../usr/lib/python3/dist-packages/pandas/tests/test_algos.py:1790 2656s /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 2656s @pytest.mark.single_cpu 2656s 2656s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2656s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-59o7vbmu' 2656s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2656s 2656s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2656s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-6jlypqfo' 2656s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2656s 2656s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2656s ======================= 447 passed, 3 warnings in 4.81s ======================== 2656s + echo 'rdjoqkol test state = true' 2656s + for TEST_SUBSET in $modpath/tests/* 2656s rdjoqkol test state = true 2657s + echo /usr/lib/python3/dist-packages/pandas/tests/test_common.py 2657s + grep -q -e __pycache__ 2657s + PANDAS_CI=1 2657s + LC_ALL=C.UTF-8 2657s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_common.py 2661s ============================= test session starts ============================== 2661s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2661s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2661s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2661s asyncio: mode=Mode.STRICT 2661s collected 128 items 2661s 2663s ../../../usr/lib/python3/dist-packages/pandas/tests/test_common.py ...............x.x.............................................................................................................. 2663s 2663s =============================== warnings summary =============================== 2663s ../../../usr/lib/python3/dist-packages/pandas/tests/test_common.py:237 2663s /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 2663s @pytest.mark.single_cpu 2663s 2663s ../../../usr/lib/python3/dist-packages/pandas/tests/test_common.py:252 2663s /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 2663s @pytest.mark.single_cpu 2663s 2663s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2663s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-0wgxmg7q' 2663s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2663s 2663s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2663s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-3ed9_n7q' 2663s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2663s 2663s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2663s ================== 126 passed, 2 xfailed, 4 warnings in 2.31s ================== 2663s rdjoqkol test state = true 2663s + echo 'rdjoqkol test state = true' 2663s + for TEST_SUBSET in $modpath/tests/* 2663s + echo /usr/lib/python3/dist-packages/pandas/tests/test_downstream.py 2663s + grep -q -e __pycache__ 2663s + PANDAS_CI=1 2663s + LC_ALL=C.UTF-8 2663s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_downstream.py 2666s ============================= test session starts ============================== 2666s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2666s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2666s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2666s asyncio: mode=Mode.STRICT 2666s collected 27 items 2666s 2672s ../../../usr/lib/python3/dist-packages/pandas/tests/test_downstream.py XXX.s..ssssss.sx.........s. 2672s 2672s =============================== warnings summary =============================== 2672s ../../../usr/lib/python3/dist-packages/pandas/tests/test_downstream.py:124 2672s /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 2672s @pytest.mark.single_cpu 2672s 2672s ../../../usr/lib/python3/dist-packages/pandas/tests/test_downstream.py:130 2672s /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 2672s @pytest.mark.single_cpu 2672s 2672s ../../../usr/lib/python3/dist-packages/pandas/tests/test_downstream.py:205 2672s /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 2672s @pytest.mark.single_cpu 2672s 2672s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2672s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-zmmokge8' 2672s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2672s 2672s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2672s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-3u83tjnw' 2672s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2672s 2672s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2672s ======= 14 passed, 9 skipped, 1 xfailed, 3 xpassed, 5 warnings in 6.11s ======== 2672s + echo 'rdjoqkol test state = true' 2672s rdjoqkol test state = true 2672s + for TEST_SUBSET in $modpath/tests/* 2672s + echo /usr/lib/python3/dist-packages/pandas/tests/test_errors.py 2672s + grep -q -e __pycache__ 2672s + PANDAS_CI=1 2672s + LC_ALL=C.UTF-8 2672s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_errors.py 2675s ============================= test session starts ============================== 2675s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2675s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2675s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2675s asyncio: mode=Mode.STRICT 2675s collected 36 items 2675s 2675s ../../../usr/lib/python3/dist-packages/pandas/tests/test_errors.py .................................... 2675s 2675s =============================== warnings summary =============================== 2675s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2675s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-48u7jafp' 2675s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2675s 2675s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2675s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-rp50glmj' 2675s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2675s 2675s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2675s ======================== 36 passed, 2 warnings in 0.06s ======================== 2676s + echo 'rdjoqkol test state = true' 2676s + for TEST_SUBSET in $modpath/tests/* 2676s rdjoqkol test state = true 2676s + echo /usr/lib/python3/dist-packages/pandas/tests/test_expressions.py 2676s + grep -q -e __pycache__ 2676s + PANDAS_CI=1 2676s + LC_ALL=C.UTF-8 2676s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_expressions.py 2678s ============================= test session starts ============================== 2678s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2678s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2678s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2678s asyncio: mode=Mode.STRICT 2678s collected 243 items 2678s 2680s ../../../usr/lib/python3/dist-packages/pandas/tests/test_expressions.py ................................................................................................................................................................................................................................................... 2680s 2680s =============================== warnings summary =============================== 2680s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2680s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-bctu4kqe' 2680s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2680s 2680s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2680s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-movoojef' 2680s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2680s 2680s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2680s ======================= 243 passed, 2 warnings in 2.17s ======================== 2680s + echo 'rdjoqkol test state = true' 2680s + for TEST_SUBSET in $modpath/tests/* 2680s + echo /usr/lib/python3/dist-packages/pandas/tests/test_flags.py 2680s + grep -q -e __pycache__ 2680s rdjoqkol test state = true 2680s + PANDAS_CI=1 2680s + LC_ALL=C.UTF-8 2680s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_flags.py 2682s ============================= test session starts ============================== 2682s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2682s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2682s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2682s asyncio: mode=Mode.STRICT 2682s collected 5 items 2682s 2682s ../../../usr/lib/python3/dist-packages/pandas/tests/test_flags.py ..... 2682s 2682s =============================== warnings summary =============================== 2682s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2682s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-vnnw5eg0' 2682s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2682s 2682s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2682s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-rprbpt95' 2682s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2682s 2682s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2682s ======================== 5 passed, 2 warnings in 0.04s ========================= 2682s + echo 'rdjoqkol test state = true' 2682s + for TEST_SUBSET in $modpath/tests/* 2682s rdjoqkol test state = true 2682s + echo /usr/lib/python3/dist-packages/pandas/tests/test_multilevel.py 2683s + grep -q -e __pycache__ 2683s + PANDAS_CI=1 2683s + LC_ALL=C.UTF-8 2683s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_multilevel.py 2686s ============================= test session starts ============================== 2686s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2686s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2686s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2686s asyncio: mode=Mode.STRICT 2686s collected 19 items 2686s 2686s ../../../usr/lib/python3/dist-packages/pandas/tests/test_multilevel.py ................... 2686s 2686s =============================== warnings summary =============================== 2686s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2686s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-7g398_5b' 2686s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2686s 2686s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2686s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-bmkkyx7i' 2686s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2686s 2686s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2686s ======================== 19 passed, 2 warnings in 0.30s ======================== 2687s + echo 'rdjoqkol test state = true' 2687s + for TEST_SUBSET in $modpath/tests/* 2687s rdjoqkol test state = true 2687s + echo /usr/lib/python3/dist-packages/pandas/tests/test_nanops.py 2687s + grep -q -e __pycache__ 2687s + PANDAS_CI=1 2687s + LC_ALL=C.UTF-8 2687s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_nanops.py 2689s ============================= test session starts ============================== 2689s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2689s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2689s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2689s asyncio: mode=Mode.STRICT 2689s collected 245 items 2689s 2690s ../../../usr/lib/python3/dist-packages/pandas/tests/test_nanops.py ..............................................................................................................................................................................ss................................s.....s.....s.....s.....s.....s.....s 2690s 2690s =============================== warnings summary =============================== 2690s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2690s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-50pi_lun' 2690s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2690s 2690s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2690s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-ksl7mnj8' 2690s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2690s 2690s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2690s ================== 236 passed, 9 skipped, 2 warnings in 0.88s ================== 2690s rdjoqkol test state = true 2690s + echo 'rdjoqkol test state = true' 2690s + for TEST_SUBSET in $modpath/tests/* 2690s + echo /usr/lib/python3/dist-packages/pandas/tests/test_optional_dependency.py 2690s + grep -q -e __pycache__ 2690s + PANDAS_CI=1 2690s + LC_ALL=C.UTF-8 2690s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_optional_dependency.py 2691s ============================= test session starts ============================== 2691s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2691s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2691s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2691s asyncio: mode=Mode.STRICT 2691s collected 5 items 2691s 2692s ../../../usr/lib/python3/dist-packages/pandas/tests/test_optional_dependency.py .s... 2692s 2692s =============================== warnings summary =============================== 2692s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2692s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-vxg48e2l' 2692s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2692s 2692s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2692s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-je5__9vx' 2692s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2692s 2692s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2692s =================== 4 passed, 1 skipped, 2 warnings in 0.13s =================== 2692s rdjoqkol test state = true 2692s + echo 'rdjoqkol test state = true' 2692s + for TEST_SUBSET in $modpath/tests/* 2692s + echo /usr/lib/python3/dist-packages/pandas/tests/test_register_accessor.py 2692s + grep -q -e __pycache__ 2692s + PANDAS_CI=1 2692s + LC_ALL=C.UTF-8 2692s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_register_accessor.py 2694s ============================= test session starts ============================== 2694s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2694s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2694s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2694s asyncio: mode=Mode.STRICT 2694s collected 7 items 2694s 2694s ../../../usr/lib/python3/dist-packages/pandas/tests/test_register_accessor.py ....... 2694s 2694s =============================== warnings summary =============================== 2694s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2694s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-dauu816p' 2694s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2694s 2694s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2694s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-ydq376yt' 2694s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2694s 2694s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2694s ======================== 7 passed, 2 warnings in 0.12s ========================= 2694s + echo 'rdjoqkol test state = true' 2694s rdjoqkol test state = true 2694s + for TEST_SUBSET in $modpath/tests/* 2694s + echo /usr/lib/python3/dist-packages/pandas/tests/test_sorting.py 2694s + grep -q -e __pycache__ 2694s + PANDAS_CI=1 2694s + LC_ALL=C.UTF-8 2694s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_sorting.py 2696s ============================= test session starts ============================== 2696s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2696s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2696s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2696s asyncio: mode=Mode.STRICT 2696s collected 54 items / 15 deselected / 39 selected 2696s 2698s ../../../usr/lib/python3/dist-packages/pandas/tests/test_sorting.py ....................................... 2698s 2698s =============================== warnings summary =============================== 2698s ../../../usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:53 2698s /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 2698s @pytest.mark.slow 2698s 2698s ../../../usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:215 2698s /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 2698s @pytest.mark.slow 2698s 2698s ../../../usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:226 2698s /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 2698s @pytest.mark.slow 2698s 2698s ../../../usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:237 2698s /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 2698s @pytest.mark.slow 2698s 2698s ../../../usr/lib/python3/dist-packages/pandas/tests/test_sorting.py:249 2698s /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 2698s @pytest.mark.slow 2698s 2698s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2698s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-0aqku_kj' 2698s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2698s 2698s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2698s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-r0wk9tto' 2698s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2698s 2698s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2698s ================ 39 passed, 15 deselected, 7 warnings in 1.92s ================= 2698s + echo 'rdjoqkol test state = true' 2698s rdjoqkol test state = true 2698s + for TEST_SUBSET in $modpath/tests/* 2698s + echo /usr/lib/python3/dist-packages/pandas/tests/test_take.py 2698s + grep -q -e __pycache__ 2698s + PANDAS_CI=1 2698s + LC_ALL=C.UTF-8 2698s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/test_take.py 2700s ============================= test session starts ============================== 2700s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2700s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2700s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2700s asyncio: mode=Mode.STRICT 2700s collected 81 items 2700s 2700s ../../../usr/lib/python3/dist-packages/pandas/tests/test_take.py ................................................................................. 2700s 2700s =============================== warnings summary =============================== 2700s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2700s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-_85fyazr' 2700s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2700s 2700s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2700s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-cin8a3qk' 2700s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2700s 2700s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2700s ======================== 81 passed, 2 warnings in 0.21s ======================== 2700s + echo 'rdjoqkol test state = true' 2700s + for TEST_SUBSET in $modpath/tests/* 2700s rdjoqkol test state = true 2700s + echo /usr/lib/python3/dist-packages/pandas/tests/tools 2700s + grep -q -e __pycache__ 2700s + PANDAS_CI=1 2700s + LC_ALL=C.UTF-8 2700s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/tools 2703s ============================= test session starts ============================== 2703s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2703s rootdir: /usr/lib/python3/dist-packages/pandas/tests/tools 2703s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2703s asyncio: mode=Mode.STRICT 2703s collected 1479 items 2703s 2707s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py ............................................................................ss...................................................................................................................................................ssssssss...................................................................ss..............................................................................................................xx..xx..........................................................................................................................................................xx....ss.ssssss....................................................s........................................................................................................................................................................................................................................................................................................ssssssssss.. 2708s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_numeric.py ...s.s....................................................................................................................................................................................................................................................xx.......................................................................................................................ssssss.s.s.................................sss...sss.s....ssss.s.s 2708s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_time.py ........... 2708s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_timedelta.py .......................................................................ssssssssssss 2708s 2708s =============================== warnings summary =============================== 2708s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2708s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-gyhpast9' 2708s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2708s 2708s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2708s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-zzl8jnfw' 2708s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2708s 2708s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2708s =========== 1405 passed, 66 skipped, 8 xfailed, 2 warnings in 6.02s ============ 2708s + echo 'rdjoqkol test state = true' 2708s + for TEST_SUBSET in $modpath/tests/* 2708s rdjoqkol test state = true 2708s + echo /usr/lib/python3/dist-packages/pandas/tests/tseries 2708s + grep -q -e __pycache__ 2708s + PANDAS_CI=1 2708s + LC_ALL=C.UTF-8 2708s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/tseries 2713s ============================= test session starts ============================== 2713s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2713s rootdir: /usr/lib/python3/dist-packages/pandas/tests/tseries 2713s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2713s asyncio: mode=Mode.STRICT 2713s collected 5314 items 2713s 2713s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/frequencies/test_freq_code.py .................................... 2713s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/frequencies/test_frequencies.py .......... 2714s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/frequencies/test_inference.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 2714s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/holiday/test_calendar.py ........ 2714s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/holiday/test_federal.py ... 2714s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/holiday/test_holiday.py ................................................ 2715s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/holiday/test_observance.py ................................. 2715s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_business_day.py ....................... 2715s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_business_hour.py ................................................................................ 2715s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_business_month.py ..................... 2715s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_business_quarter.py .............................................. 2715s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_business_year.py ................... 2716s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_common.py ...................................................................................................................................................................................................................................................................................XXXXXX..XXXXXXXXXXXX............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................. 2716s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_custom_business_day.py ....... 2716s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_custom_business_hour.py ............................ 2716s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_custom_business_month.py ...................................................... 2717s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_dst.py .......................... 2717s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_easter.py .......... 2717s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_fiscal.py ............................................................................................................................................. 2718s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_index.py ........................ 2718s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_month.py ............................................................ 2724s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_offsets.py .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................x..................................................................................................................................................................................................................................................x............................................................................................................................................................................................................................................... 2725s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_offsets_properties.py .. 2725s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_quarter.py ........................................................................................ 2727s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_ticks.py ........................................................................................................... 2727s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_week.py .............................................. 2728s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_year.py ................................. 2728s 2728s =============================== warnings summary =============================== 2728s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_offsets_properties.py:27 2728s /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 2728s @pytest.mark.arm_slow 2728s 2728s ../../../usr/lib/python3/dist-packages/pandas/tests/tseries/offsets/test_ticks.py:82 2728s /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 2728s @pytest.mark.arm_slow 2728s 2728s offsets/test_offsets_properties.py::test_on_offset_implementations 2728s /usr/lib/python3/dist-packages/dateutil/zoneinfo/__init__.py:26: UserWarning: I/O error(2): No such file or directory 2728s warnings.warn("I/O error({0}): {1}".format(e.errno, e.strerror)) 2728s 2728s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2728s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-lu9udepw' 2728s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2728s 2728s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2728s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-n04oq7ds' 2728s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2728s 2728s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2728s =========== 5294 passed, 2 xfailed, 18 xpassed, 5 warnings in 16.28s =========== 2728s + echo 'rdjoqkol test state = true' 2728s + for TEST_SUBSET in $modpath/tests/* 2728s rdjoqkol test state = true 2728s + echo /usr/lib/python3/dist-packages/pandas/tests/tslibs 2728s + grep -q -e __pycache__ 2728s + PANDAS_CI=1 2728s + LC_ALL=C.UTF-8 2728s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/tslibs 2731s ============================= test session starts ============================== 2731s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2731s rootdir: /usr/lib/python3/dist-packages/pandas/tests/tslibs 2731s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2731s asyncio: mode=Mode.STRICT 2731s collected 1026 items 2731s 2731s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_api.py . 2731s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_array_to_datetime.py ........................... 2731s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_ccalendar.py ................. 2735s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_conversion.py ...................................................................... 2735s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_fields.py .... 2735s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_libfrequencies.py .............. 2735s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_liboffsets.py .......................................................................... 2735s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_np_datetime.py ........ 2735s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_parse_iso8601.py ................................................... 2735s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_parsing.py .................................ssssssssssssssssssssssssssssssssssssssss..sss............................................. 2735s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_period_asfreq.py ...................................... 2735s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_resolution.py .. 2735s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_timedeltas.py ......................... 2736s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_timezones.py ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 2736s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_to_offset.py ................................................................................... 2736s ../../../usr/lib/python3/dist-packages/pandas/tests/tslibs/test_tzconversion.py . 2736s 2736s =============================== warnings summary =============================== 2736s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2736s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-cb_uyska' 2736s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2736s 2736s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2736s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-ftvgav4w' 2736s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2736s 2736s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2736s ================= 983 passed, 43 skipped, 2 warnings in 5.48s ================== 2737s + echo 'rdjoqkol test state = true' 2737s + for TEST_SUBSET in $modpath/tests/* 2737s + echo /usr/lib/python3/dist-packages/pandas/tests/util 2737s rdjoqkol test state = true 2737s + grep -q -e __pycache__ 2737s + PANDAS_CI=1 2737s + LC_ALL=C.UTF-8 2737s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/util 2739s ============================= test session starts ============================== 2739s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2739s rootdir: /usr/lib/python3/dist-packages/pandas/tests/util 2739s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2739s asyncio: mode=Mode.STRICT 2739s collected 910 items 2739s 2740s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_almost_equal.py .................................................................................................................................................................... 2740s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_attr_equal.py .......................................... 2740s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_categorical_equal.py .......... 2740s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_extension_array_equal.py .................... 2740s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_frame_equal.py ............................................................................................................... 2740s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_index_equal.py ................................................................ 2740s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_interval_array_equal.py ....... 2740s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_numpy_array_equal.py ......................... 2741s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_produces_warning.py ............................................................................................................................ 2741s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_assert_series_equal.py .................................................................................. 2741s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_deprecate.py ... 2741s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_deprecate_kwarg.py .............. 2741s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_deprecate_nonkeyword_arguments.py ................... 2741s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_doc.py .... 2742s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_hashing.py ..................................................................................................................................................... 2742s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_make_objects.py . 2742s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_numba.py . 2742s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_rewrite_warning.py .......... 2742s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_safe_import.py ........ 2742s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_shares_memory.py . 2743s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_show_versions.py .... 2743s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_util.py ...sx. 2743s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_validate_args.py ...... 2743s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_validate_args_and_kwargs.py ...... 2743s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_validate_inclusive.py ........... 2743s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_validate_kwargs.py .................. 2743s 2743s =============================== warnings summary =============================== 2743s test_show_versions.py::test_show_versions 2743s test_show_versions.py::test_show_versions 2743s test_show_versions.py::test_show_versions_console_json 2743s test_show_versions.py::test_show_versions_console 2743s test_show_versions.py::test_json_output_match 2743s /usr/lib/python3/dist-packages/pandas/compat/_optional.py:127: UserWarning: Non-x86 system detected, Numba may give wrong results or crash 2743s warnings.warn(warn_numba_platform) 2743s 2743s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2743s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-uaklui60' 2743s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2743s 2743s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2743s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-kzlkh98r' 2743s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2743s 2743s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2743s ============ 908 passed, 1 skipped, 1 xfailed, 7 warnings in 4.80s ============= 2743s rdjoqkol test state = true 2743s + echo 'rdjoqkol test state = true' 2743s + for TEST_SUBSET in $modpath/tests/* 2743s + echo /usr/lib/python3/dist-packages/pandas/tests/window 2743s + grep -q -e __pycache__ 2743s + PANDAS_CI=1 2743s + LC_ALL=C.UTF-8 2743s + 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.7zWmJG/build.9HX/src/pandas/tests --confcutdir=/usr/lib/python3/dist-packages/pandas /usr/lib/python3/dist-packages/pandas/tests/window 2746s ============================= test session starts ============================== 2746s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 2746s rootdir: /usr/lib/python3/dist-packages/pandas/tests/window 2746s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2746s asyncio: mode=Mode.STRICT 2746s collected 10139 items / 536 deselected / 1 skipped / 9603 selected 2746s 2749s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 2750s ../../../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................................................................................................................................................................................................................................................................................ 2752s ../../../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................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 2754s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py ......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 2755s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py ...s....sssss..........s..s....................................................... 2756s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py .................................................................................................................................................................................................................................... 2756s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py ........................................................................ 2761s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 2762s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py ..............................................................................................................................................................................ssssssssssss........ssssssssssssssss................ 2763s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py ..........x................................................................................................................................................................................................ss....s...................s..s......s............................................................................................. 2764s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py .......................................................................................................... 2764s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss 2767s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py .....................................................................................................................................................X.....X.....X.....X.....X.....X.....X.....X.....X................................................................................................................. 2770s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py ...................................................................................................................................................................................................................................................................................................................................................................XXXX........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 2772s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py .................................................................................................................................................................................................................................................................................................................................................................................................................................. 2773s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py .......................................................................................................................................................................................... 2773s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py .................................................................... 2773s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py ......................................................................... 2774s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py ............................................................................................................................................................................................................................................................................................... 2774s 2774s =============================== warnings summary =============================== 2774s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py:27 2774s /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 2774s pytest.mark.single_cpu, 2774s 2774s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py:339 2774s /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 2774s @pytest.mark.slow 2774s 2774s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_online.py:17 2774s /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 2774s pytest.mark.single_cpu, 2774s 2774s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py:154 2774s /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 2774s @pytest.mark.slow 2774s 2774s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 2774s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-lnnl67j9' 2774s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 2774s 2774s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 2774s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-dsqt3z_d' 2774s session.config.cache.set(STEPWISE_CACHE_DIR, []) 2774s 2774s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 2774s = 8900 passed, 648 skipped, 536 deselected, 43 xfailed, 13 xpassed, 6 warnings in 28.89s = 2775s rdjoqkol test state = true 2775s + echo 'rdjoqkol test state = true' 2775s + true 2775s autopkgtest [17:20:18]: test unittests3: -----------------------] 2780s autopkgtest [17:20:23]: test unittests3: - - - - - - - - - - results - - - - - - - - - - 2780s unittests3 PASS 2784s autopkgtest [17:20:27]: test ignoredtests: preparing testbed 2795s Reading package lists... 2795s Building dependency tree... 2795s Reading state information... 2796s Starting pkgProblemResolver with broken count: 0 2796s Starting 2 pkgProblemResolver with broken count: 0 2796s Done 2797s The following additional packages will be installed: 2797s libpq5 python3-psycopg2 python3-pymysql 2797s Suggested packages: 2797s python-psycopg2-doc python-pymysql-doc 2797s The following NEW packages will be installed: 2797s autopkgtest-satdep libpq5 python3-psycopg2 python3-pymysql 2797s 0 upgraded, 4 newly installed, 0 to remove and 45 not upgraded. 2797s Need to get 283 kB/284 kB of archives. 2797s After this operation, 865 kB of additional disk space will be used. 2797s Get:1 /tmp/autopkgtest.7zWmJG/3-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [1060 B] 2797s Get:2 http://ftpmaster.internal/ubuntu oracular/main armhf libpq5 armhf 16.3-1 [122 kB] 2797s Get:3 http://ftpmaster.internal/ubuntu oracular/main armhf python3-psycopg2 armhf 2.9.9-1build1 [121 kB] 2797s Get:4 http://ftpmaster.internal/ubuntu oracular/main armhf python3-pymysql all 1.1.1-1ubuntu1 [39.4 kB] 2798s Fetched 283 kB in 1s (429 kB/s) 2798s Selecting previously unselected package libpq5:armhf. 2798s (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 ... 77606 files and directories currently installed.) 2798s Preparing to unpack .../libpq5_16.3-1_armhf.deb ... 2798s Unpacking libpq5:armhf (16.3-1) ... 2798s Selecting previously unselected package python3-psycopg2. 2798s Preparing to unpack .../python3-psycopg2_2.9.9-1build1_armhf.deb ... 2798s Unpacking python3-psycopg2 (2.9.9-1build1) ... 2798s Selecting previously unselected package python3-pymysql. 2799s Preparing to unpack .../python3-pymysql_1.1.1-1ubuntu1_all.deb ... 2799s Unpacking python3-pymysql (1.1.1-1ubuntu1) ... 2799s Selecting previously unselected package autopkgtest-satdep. 2799s Preparing to unpack .../3-autopkgtest-satdep.deb ... 2799s Unpacking autopkgtest-satdep (0) ... 2799s Setting up libpq5:armhf (16.3-1) ... 2799s Setting up python3-psycopg2 (2.9.9-1build1) ... 2799s Setting up python3-pymysql (1.1.1-1ubuntu1) ... 2799s Setting up autopkgtest-satdep (0) ... 2799s Processing triggers for libc-bin (2.39-3.1ubuntu3) ... 2814s (Reading database ... 77659 files and directories currently installed.) 2814s Removing autopkgtest-satdep (0) ... 2823s autopkgtest [17:21:06]: test ignoredtests: [----------------------- 2830s === python3.12 === 2831s 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 2836s ============================= test session starts ============================== 2836s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 -- /usr/bin/python3.12 2836s cachedir: .pytest_cache 2836s hypothesis profile 'ci' -> deadline=None, suppress_health_check=[HealthCheck.too_slow, HealthCheck.differing_executors], database=DirectoryBasedExampleDatabase(PosixPath('/tmp/autopkgtest.7zWmJG/autopkgtest_tmp/.hypothesis/examples')) 2836s rootdir: /usr/lib/python3/dist-packages/pandas/tests 2836s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 2836s asyncio: mode=Mode.STRICT 2837s collecting ... collected 10342 items / 536 deselected / 2 skipped / 9806 selected 2837s 2839s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_unary_unary[int64] PASSED 2841s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_unary_unary[Int64] PASSED 2841s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_unary_unary[dtype2] PASSED 2843s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_unary_binary[int64] PASSED 2844s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_unary_binary[Int64] XFAIL 2844s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_unary_binary[dtype2] XFAIL 2845s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_dispatch_binop[int64] PASSED 2845s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_dispatch_binop[Int64] PASSED 2845s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_dispatch_binop[dtype2] PASSED 2845s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_ufunc_passes_args[add-1-expected0] PASSED 2845s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_ufunc_passes_args[func1-arg1-expected1] PASSED 2845s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_ufunc_passes_args[power-arg2-expected2] PASSED 2845s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_ufunc_passes_args[subtract-2-expected3] PASSED 2845s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_ufunc_passes_args[func4-None-expected4] PASSED 2846s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[int64-int64] PASSED 2847s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[int64-Int64] XFAIL 2847s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[int64-dtype_a2] XFAIL 2848s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[Int64-int64] XFAIL 2848s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[Int64-Int64] XFAIL 2849s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[Int64-dtype_a2] XFAIL 2849s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[dtype_b2-int64] XFAIL 2850s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[dtype_b2-Int64] XFAIL 2850s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_columns[dtype_b2-dtype_a2] XFAIL 2850s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_index[int64] PASSED 2851s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_index[Int64] XFAIL 2851s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_input_aligns_index[dtype2] XFAIL 2851s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_binary_frame_series_raises PASSED 2851s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_unary_accumulate_axis PASSED 2851s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_frame_outer_disallowed PASSED 2852s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_alignment_deprecation_enforced PASSED 2852s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_alignment_deprecation_many_inputs_enforced SKIPPED 2852s ../../../usr/lib/python3/dist-packages/pandas/tests/frame/test_ufunc.py::test_array_ufuncs_for_many_arguments PASSED 2852s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_with_timegrouper PASSED 2852s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_with_timegrouper_methods[True] PASSED 2852s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_with_timegrouper_methods[False] PASSED 2853s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_with_reg_groups PASSED 2853s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_with_reg_groups_freq[D] PASSED 2854s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_with_reg_groups_freq[M] PASSED 2855s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_with_reg_groups_freq[A] PASSED 2855s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_with_reg_groups_freq[Q-APR] PASSED 2855s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_get_group PASSED 2855s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_apply_return_type_series PASSED 2855s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timegrouper_apply_return_type_value PASSED 2855s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_groups_datetimeindex PASSED 2855s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_groups_datetimeindex_tz PASSED 2856s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_frame_datetime64_handling_groupby PASSED 2856s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_multi_timezone PASSED 2856s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_groups_periods PASSED 2856s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_first_datetime64 PASSED 2856s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_max_datetime64 PASSED 2856s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_datetime64_32_bit PASSED 2856s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_with_timezone_selection PASSED 2856s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_timezone_info PASSED 2856s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_datetime_count PASSED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_first_last_max_min_on_time_data PASSED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_nunique_with_timegrouper_and_nat PASSED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_scalar_call_versus_list_call PASSED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_grouper_period_index PASSED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_apply_timegrouper_with_nat_dict_returns PASSED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_apply_timegrouper_with_nat_scalar_returns PASSED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_apply_timegrouper_with_nat_apply_squeeze PASSED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py::TestGroupBy::test_groupby_agg_numba_timegrouper_with_nat SKIPPED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_correct_function_signature SKIPPED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_check_nopython_kwargs SKIPPED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-True-Series-True] SKIPPED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-True-Series-False] SKIPPED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-True-DataFrame-True] SKIPPED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-True-DataFrame-False] SKIPPED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-False-Series-True] SKIPPED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-False-Series-False] SKIPPED 2857s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-False-DataFrame-True] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-True-True-False-DataFrame-False] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-True-Series-True] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-True-Series-False] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-True-DataFrame-True] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-True-DataFrame-False] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-False-Series-True] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-False-Series-False] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-False-DataFrame-True] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_numba_vs_cython[False-False-True-False-DataFrame-False] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-True-True-Series-True] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-True-True-Series-False] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-True-True-DataFrame-True] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-True-True-DataFrame-False] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-False-True-Series-True] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-False-True-Series-False] SKIPPED 2858s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-False-True-DataFrame-True] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_cache[False-False-True-DataFrame-False] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_use_global_config SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[mean-agg_func0] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[mean-min] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[mean-agg_func2] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[var_1-agg_func0] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[var_1-min] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[var_1-agg_func2] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[var_0-agg_func0] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[var_0-min] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[var_0-agg_func2] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[std_1-agg_func0] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[std_1-min] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[std_1-agg_func2] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[std_0-agg_func0] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[std_0-min] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[std_0-agg_func2] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[sum-agg_func0] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[sum-min] SKIPPED 2859s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[sum-agg_func2] SKIPPED 2860s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[min-agg_func0] SKIPPED 2860s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[min-min] SKIPPED 2860s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[min-agg_func2] SKIPPED 2860s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[max-agg_func0] SKIPPED 2860s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[max-min] SKIPPED 2860s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[max-agg_func2] SKIPPED 2860s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[sum-min_count-agg_func0] SKIPPED 2860s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[sum-min_count-min] SKIPPED 2860s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[sum-min_count-agg_func2] SKIPPED 2860s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[min-min_count-agg_func0] SKIPPED 2860s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[min-min_count-min] SKIPPED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[min-min_count-agg_func2] SKIPPED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[max-min_count-agg_func0] SKIPPED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[max-min_count-min] SKIPPED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_string_cython_vs_numba[max-min_count-agg_func2] SKIPPED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_args_not_cached SKIPPED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_index_data_correctly_passed SKIPPED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_engine_kwargs_not_cached SKIPPED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multiindex_one_key[False-True-True] SKIPPED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multiindex_one_key[False-False-True] SKIPPED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multiindex_multi_key_not_supported[False-True-True] SKIPPED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multiindex_multi_key_not_supported[False-False-True] SKIPPED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[mean] SKIPPED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[var_1] SKIPPED 2861s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[var_0] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[std_1] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[std_0] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[sum] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[min] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[max] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[sum-min_count] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[min-min_count] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_numba_vs_cython[max-min_count] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py::test_multilabel_udf_numba_vs_cython SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_correct_function_signature SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_check_nopython_kwargs SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-True-Series-True] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-True-Series-False] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-True-DataFrame-True] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-True-DataFrame-False] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-False-Series-True] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-False-Series-False] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-False-DataFrame-True] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-True-True-False-DataFrame-False] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-True-Series-True] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-True-Series-False] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-True-DataFrame-True] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-True-DataFrame-False] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-False-Series-True] SKIPPED 2862s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-False-Series-False] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-False-DataFrame-True] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_numba_vs_cython[False-False-True-False-DataFrame-False] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-True-True-Series-True] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-True-True-Series-False] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-True-True-DataFrame-True] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-True-True-DataFrame-False] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-False-True-Series-True] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-False-True-Series-False] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-False-True-DataFrame-True] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_cache[False-False-True-DataFrame-False] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_use_global_config SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_vs_cython_frame[agg_kwargs0] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_vs_cython_frame[agg_kwargs1] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_vs_cython_frame[agg_kwargs2] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_vs_cython_frame[agg_kwargs3] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_udf_frame[agg_kwargs0-sum] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_udf_frame[agg_kwargs1-expected_func1] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_vs_cython_series[agg_kwargs0] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_vs_cython_series[agg_kwargs1] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_vs_cython_series[agg_kwargs2] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_kwarg_propagation[data0-agg_kwargs0] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_kwarg_propagation[data1-agg_kwargs1] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_kwarg_propagation[data2-agg_kwargs2] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_kwarg_propagation[data3-agg_kwargs3] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_kwarg_propagation[data4-agg_kwargs4] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multifunc_numba_kwarg_propagation[data5-agg_kwargs5] SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_args_not_cached SKIPPED 2863s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_index_data_correctly_passed SKIPPED 2864s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_engine_kwargs_not_cached SKIPPED 2864s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multiindex_one_key[False-True-True] SKIPPED 2864s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multiindex_one_key[False-False-True] SKIPPED 2864s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multiindex_multi_key_not_supported[False-True-True] SKIPPED 2864s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multiindex_multi_key_not_supported[False-False-True] SKIPPED 2864s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[mean] SKIPPED 2864s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[var_1] SKIPPED 2864s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[var_0] SKIPPED 2864s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[std_1] SKIPPED 2864s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[std_0] SKIPPED 2864s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[sum] SKIPPED 2864s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[min] SKIPPED 2864s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[max] SKIPPED 2865s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[sum-min_count] SKIPPED 2865s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[min-min_count] SKIPPED 2865s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_numba_vs_cython[max-min_count] SKIPPED 2865s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py::test_multilabel_udf_numba_vs_cython SKIPPED 2865s ../../../usr/lib/python3/dist-packages/pandas/tests/util/test_numba.py::test_numba_not_installed_option_context PASSED 2865s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-True-True-0] PASSED 2865s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-True-True-2] PASSED 2865s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-True-False-0] PASSED 2865s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-True-False-2] PASSED 2865s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-False-True-0] PASSED 2865s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-False-True-2] PASSED 2865s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-False-False-0] PASSED 2865s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data0-False-False-2] PASSED 2866s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-True-True-0] PASSED 2866s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-True-True-2] PASSED 2866s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-True-False-0] PASSED 2866s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-True-False-2] PASSED 2866s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-False-True-0] PASSED 2866s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-False-True-2] PASSED 2866s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-False-False-0] PASSED 2866s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data1-False-False-2] PASSED 2867s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-True-True-0] PASSED 2867s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-True-True-2] PASSED 2867s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-True-False-0] PASSED 2867s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-True-False-2] PASSED 2868s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-False-True-0] PASSED 2868s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-False-True-2] PASSED 2868s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-False-False-0] PASSED 2868s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data2-False-False-2] PASSED 2868s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-True-True-0] PASSED 2868s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-True-True-2] PASSED 2868s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-True-False-0] PASSED 2869s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-True-False-2] PASSED 2869s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-False-True-0] PASSED 2869s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-False-True-2] PASSED 2869s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-False-False-0] PASSED 2869s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data3-False-False-2] PASSED 2869s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-True-True-0] PASSED 2869s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-True-True-2] PASSED 2869s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-True-False-0] PASSED 2869s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-True-False-2] PASSED 2869s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-False-True-0] PASSED 2869s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-False-True-2] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-False-False-0] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data4-False-False-2] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-True-True-0] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-True-True-2] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-True-False-0] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-True-False-2] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-False-True-0] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-False-True-2] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-False-False-0] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data5-False-False-2] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-True-True-0] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-True-True-2] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-True-False-0] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-True-False-2] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-False-True-0] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-False-True-2] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-False-False-0] PASSED 2870s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data6-False-False-2] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-True-True-0] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-True-True-2] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-True-False-0] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-True-False-2] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-False-True-0] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-False-True-2] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-False-False-0] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data7-False-False-2] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-True-True-0] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-True-True-2] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-True-False-0] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-True-False-2] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-False-True-0] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-False-True-2] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-False-False-0] PASSED 2871s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data8-False-False-2] PASSED 2872s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-True-True-0] PASSED 2872s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-True-True-2] PASSED 2872s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-True-False-0] PASSED 2872s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-True-False-2] PASSED 2872s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-False-True-0] PASSED 2872s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-False-True-2] PASSED 2872s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-False-False-0] PASSED 2872s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data9-False-False-2] PASSED 2872s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-True-True-0] PASSED 2873s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-True-True-2] PASSED 2873s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-True-False-0] PASSED 2874s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-True-False-2] PASSED 2874s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-False-True-0] PASSED 2874s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-False-True-2] PASSED 2874s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-False-False-0] PASSED 2875s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data10-False-False-2] PASSED 2875s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-True-True-0] PASSED 2875s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-True-True-2] PASSED 2875s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-True-False-0] PASSED 2875s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-True-False-2] PASSED 2875s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-False-True-0] PASSED 2876s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-False-True-2] PASSED 2876s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-False-False-0] PASSED 2877s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data11-False-False-2] PASSED 2877s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-True-True-0] PASSED 2877s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-True-True-2] PASSED 2877s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-True-False-0] PASSED 2878s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-True-False-2] PASSED 2879s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-False-True-0] PASSED 2879s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-False-True-2] PASSED 2879s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-False-False-0] PASSED 2880s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data12-False-False-2] PASSED 2880s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-True-True-0] PASSED 2881s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-True-True-2] PASSED 2881s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-True-False-0] PASSED 2882s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-True-False-2] PASSED 2883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-False-True-0] PASSED 2883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-False-True-2] PASSED 2883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-False-False-0] PASSED 2883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data13-False-False-2] PASSED 2883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-True-True-0] PASSED 2883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-True-True-2] PASSED 2883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-True-False-0] PASSED 2883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-True-False-2] PASSED 2883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-False-True-0] PASSED 2883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-False-True-2] PASSED 2883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-False-False-0] PASSED 2883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data14-False-False-2] PASSED 2883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-True-True-0] PASSED 2883s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-True-True-2] PASSED 2884s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-True-False-0] PASSED 2884s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-True-False-2] PASSED 2884s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-False-True-0] PASSED 2884s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-False-True-2] PASSED 2885s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-False-False-0] PASSED 2885s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data15-False-False-2] PASSED 2886s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-True-True-0] PASSED 2889s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-True-True-2] PASSED 2889s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-True-False-0] PASSED 2890s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-True-False-2] PASSED 2890s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-False-True-0] PASSED 2890s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-False-True-2] PASSED 2890s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-False-False-0] PASSED 2890s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data16-False-False-2] PASSED 2890s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-True-True-0] PASSED 2890s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-True-True-2] PASSED 2890s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-True-False-0] PASSED 2890s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-True-False-2] PASSED 2890s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-False-True-0] PASSED 2891s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-False-True-2] PASSED 2891s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-False-False-0] PASSED 2891s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_mean[all_data17-False-False-2] PASSED 2891s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-True-True-0] PASSED 2891s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-True-True-2] PASSED 2891s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-True-False-0] PASSED 2891s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-True-False-2] PASSED 2891s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-False-True-0] PASSED 2891s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-False-True-2] PASSED 2891s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-False-False-0] PASSED 2891s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data0-False-False-2] PASSED 2891s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-True-True-0] PASSED 2891s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-True-True-2] PASSED 2892s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-True-False-0] PASSED 2892s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-True-False-2] PASSED 2892s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-False-True-0] PASSED 2892s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-False-True-2] PASSED 2892s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-False-False-0] PASSED 2892s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data1-False-False-2] PASSED 2892s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-True-True-0] PASSED 2892s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-True-True-2] PASSED 2893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-True-False-0] PASSED 2893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-True-False-2] PASSED 2893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-False-True-0] PASSED 2893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-False-True-2] PASSED 2893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-False-False-0] PASSED 2893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data2-False-False-2] PASSED 2893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-True-True-0] PASSED 2893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-True-True-2] PASSED 2893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-True-False-0] PASSED 2893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-True-False-2] PASSED 2893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-False-True-0] PASSED 2893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-False-True-2] PASSED 2893s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-False-False-0] PASSED 2894s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_ewm.py::test_ewm_consistency_consistent[consistent_data3-False-False-2] PASSED 2894s ../../../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 2894s ../../../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 2894s ../../../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 2894s ../../../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 2894s ../../../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 2895s ../../../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 2895s ../../../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 2895s ../../../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 2895s ../../../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 2895s ../../../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 2895s ../../../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 2895s ../../../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 2895s ../../../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 2895s ../../../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 2895s ../../../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 2895s ../../../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 2895s ../../../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 2895s ../../../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 2896s ../../../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 2896s ../../../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 2896s ../../../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 2896s ../../../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 2897s ../../../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 2898s ../../../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 2900s ../../../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 2903s ../../../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 2904s ../../../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 2905s ../../../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 2906s ../../../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 2906s ../../../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 2907s ../../../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 2907s ../../../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 2908s ../../../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 2908s ../../../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 2908s ../../../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 2909s ../../../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 2909s ../../../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 2909s ../../../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 2910s ../../../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 2910s ../../../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 2910s ../../../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 2911s ../../../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 2912s ../../../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 2913s ../../../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 2913s ../../../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 2914s ../../../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 2914s ../../../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 2914s ../../../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 2914s ../../../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 2915s ../../../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 2915s ../../../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 2915s ../../../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 2915s ../../../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 2915s ../../../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 2916s ../../../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 2916s ../../../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 2916s ../../../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 2916s ../../../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 2916s ../../../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 2916s ../../../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 2916s ../../../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 2917s ../../../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 2917s ../../../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 2917s ../../../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 2917s ../../../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 2917s ../../../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 2917s ../../../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 2917s ../../../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 2918s ../../../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 2918s ../../../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 2919s ../../../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 2919s ../../../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 2919s ../../../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 2919s ../../../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 2919s ../../../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 2920s ../../../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 2920s ../../../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 2920s ../../../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 2920s ../../../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 2921s ../../../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 2921s ../../../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 2923s ../../../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 2924s ../../../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 2925s ../../../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 2925s ../../../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 2925s ../../../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 2926s ../../../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 2926s ../../../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 2926s ../../../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 2927s ../../../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 2927s ../../../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 2927s ../../../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 2927s ../../../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 2927s ../../../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 2928s ../../../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 2928s ../../../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 2928s ../../../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 2928s ../../../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 2928s ../../../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 2928s ../../../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 2928s ../../../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 2928s ../../../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 2928s ../../../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 2928s ../../../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 2928s ../../../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 2929s ../../../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 2929s ../../../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 2929s ../../../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 2929s ../../../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 2929s ../../../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 2929s ../../../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 2929s ../../../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 2929s ../../../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 2929s ../../../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 2929s ../../../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 2929s ../../../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 2929s ../../../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 2929s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2930s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2931s ../../../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 2932s ../../../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 2932s ../../../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 2932s ../../../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 2932s ../../../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 2932s ../../../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 2932s ../../../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 2932s ../../../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 2932s ../../../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 2932s ../../../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 2932s ../../../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 2932s ../../../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 2932s ../../../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 2932s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2933s ../../../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 2934s ../../../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 2934s ../../../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 2934s ../../../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 2934s ../../../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 2935s ../../../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 2936s ../../../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 2937s ../../../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 2940s ../../../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 2942s ../../../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 2943s ../../../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 2943s ../../../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 2944s ../../../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 2944s ../../../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 2944s ../../../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 2944s ../../../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 2944s ../../../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 2944s ../../../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 2944s ../../../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 2944s ../../../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 2944s ../../../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 2945s ../../../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 2945s ../../../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 2945s ../../../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 2946s ../../../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 2946s ../../../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 2946s ../../../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 2946s ../../../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 2946s ../../../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 2946s ../../../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 2946s ../../../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 2947s ../../../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 2947s ../../../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 2948s ../../../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 2948s ../../../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 2948s ../../../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 2948s ../../../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 2948s ../../../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 2949s ../../../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 2949s ../../../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 2949s ../../../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 2949s ../../../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 2949s ../../../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 2949s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2950s ../../../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 2951s ../../../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 2951s ../../../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 2951s ../../../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 2951s ../../../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 2951s ../../../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 2951s ../../../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 2951s ../../../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 2951s ../../../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 2951s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2952s ../../../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 2953s ../../../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 2953s ../../../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 2953s ../../../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 2953s ../../../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 2953s ../../../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 2954s ../../../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 2954s ../../../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 2955s ../../../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 2955s ../../../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 2955s ../../../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 2955s ../../../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 2956s ../../../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 2956s ../../../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 2956s ../../../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 2956s ../../../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 2956s ../../../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 2956s ../../../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 2956s ../../../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 2956s ../../../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 2956s ../../../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 2956s ../../../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 2956s ../../../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 2957s ../../../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 2957s ../../../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 2957s ../../../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 2957s ../../../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 2957s ../../../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 2957s ../../../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 2957s ../../../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 2957s ../../../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 2957s ../../../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 2957s ../../../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 2957s ../../../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 2957s ../../../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 2957s ../../../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 2957s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2958s ../../../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 2959s ../../../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 2959s ../../../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 2959s ../../../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 2959s ../../../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 2959s ../../../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 2959s ../../../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 2959s ../../../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 2959s ../../../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 2959s ../../../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 2959s ../../../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 2959s ../../../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 2959s ../../../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 2960s ../../../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 2961s ../../../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 2961s ../../../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 2961s ../../../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 2961s ../../../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 2961s ../../../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 2961s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2962s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2963s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2964s ../../../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 2965s ../../../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 2965s ../../../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 2965s ../../../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 2965s ../../../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 2965s ../../../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 2965s ../../../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 2965s ../../../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 2966s ../../../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 2966s ../../../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 2966s ../../../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 2966s ../../../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 2966s ../../../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 2966s ../../../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 2966s ../../../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 2966s ../../../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 2967s ../../../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 2967s ../../../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 2967s ../../../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 2967s ../../../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 2967s ../../../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 2967s ../../../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 2967s ../../../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 2967s ../../../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 2967s ../../../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 2968s ../../../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 2968s ../../../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 2968s ../../../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 2968s ../../../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 2968s ../../../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 2968s ../../../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 2968s ../../../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 2968s ../../../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 2968s ../../../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 2968s ../../../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 2968s ../../../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 2968s ../../../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 2969s ../../../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 2969s ../../../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 2969s ../../../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 2969s ../../../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 2969s ../../../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 2969s ../../../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 2969s ../../../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 2969s ../../../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 2969s ../../../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 2969s ../../../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 2969s ../../../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 2969s ../../../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 2969s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2970s ../../../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 2971s ../../../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 2971s ../../../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 2971s ../../../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 2971s ../../../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 2971s ../../../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 2971s ../../../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 2971s ../../../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 2971s ../../../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 2971s ../../../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 2971s ../../../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 2971s ../../../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 2971s ../../../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 2972s ../../../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 2972s ../../../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 2972s ../../../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 2972s ../../../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 2972s ../../../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 2972s ../../../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 2972s ../../../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 2972s ../../../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 2972s ../../../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 2972s ../../../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 2972s ../../../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 2972s ../../../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 2972s ../../../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 2972s ../../../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 2972s ../../../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 2972s ../../../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 2973s ../../../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 2973s ../../../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 2973s ../../../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 2973s ../../../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 2973s ../../../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 2973s ../../../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 2973s ../../../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 2973s ../../../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 2974s ../../../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 2974s ../../../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 2975s ../../../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 2975s ../../../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 2975s ../../../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 2975s ../../../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 2976s ../../../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 2976s ../../../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 2976s ../../../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 2976s ../../../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 2976s ../../../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 2976s ../../../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 2976s ../../../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 2976s ../../../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 2976s ../../../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 2976s ../../../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 2976s ../../../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 2976s ../../../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 2977s ../../../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 2977s ../../../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 2977s ../../../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 2977s ../../../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 2977s ../../../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 2978s ../../../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 2978s ../../../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 2978s ../../../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 2978s ../../../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 2978s ../../../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 2978s ../../../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 2978s ../../../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 2978s ../../../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 2978s ../../../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 2978s ../../../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 2978s ../../../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 2979s ../../../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 2979s ../../../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 2979s ../../../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 2980s ../../../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 2980s ../../../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 2981s ../../../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 2982s ../../../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 2982s ../../../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 2982s ../../../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 2983s ../../../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 2985s ../../../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 2987s ../../../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 2988s ../../../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 2989s ../../../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 2989s ../../../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 2990s ../../../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 2990s ../../../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 2990s ../../../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 2990s ../../../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 2990s ../../../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 2990s ../../../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 2990s ../../../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 2990s ../../../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 2990s ../../../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 2990s ../../../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 2990s ../../../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 2990s ../../../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 2990s ../../../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 2991s ../../../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 2991s ../../../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 2991s ../../../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 2991s ../../../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 2991s ../../../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 2991s ../../../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 2991s ../../../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 2991s ../../../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 2991s ../../../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 2991s ../../../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 2991s ../../../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 2992s ../../../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 2992s ../../../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 2992s ../../../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 2992s ../../../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 2992s ../../../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 2992s ../../../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 2992s ../../../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 2992s ../../../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 2993s ../../../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 2993s ../../../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 2993s ../../../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 2993s ../../../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 2993s ../../../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 2993s ../../../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 2993s ../../../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 2993s ../../../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 2993s ../../../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 2993s ../../../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 2993s ../../../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 2993s ../../../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 2993s ../../../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 2993s ../../../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 2993s ../../../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 2994s ../../../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 2994s ../../../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 2994s ../../../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 2994s ../../../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 2994s ../../../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 2994s ../../../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 2994s ../../../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 2994s ../../../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 2994s ../../../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 2994s ../../../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 2994s ../../../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 2994s ../../../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 2994s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2995s ../../../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 2996s ../../../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 2996s ../../../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 2996s ../../../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 2996s ../../../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 2996s ../../../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 2996s ../../../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 2996s ../../../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 2997s ../../../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 2997s ../../../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 2997s ../../../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 2997s ../../../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 2997s ../../../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 2997s ../../../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 2997s ../../../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 2997s ../../../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 2997s ../../../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 2998s ../../../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 2998s ../../../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 2998s ../../../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 2998s ../../../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 2998s ../../../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 2998s ../../../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 2998s ../../../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 2998s ../../../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 2998s ../../../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 2998s ../../../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 2998s ../../../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 2999s ../../../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 2999s ../../../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 2999s ../../../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 2999s ../../../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 3000s ../../../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 3000s ../../../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 3000s ../../../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 3000s ../../../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 3001s ../../../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 3001s ../../../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 3001s ../../../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 3001s ../../../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 3001s ../../../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 3001s ../../../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 3001s ../../../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 3001s ../../../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 3001s ../../../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 3002s ../../../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 3002s ../../../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 3002s ../../../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 3002s ../../../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 3002s ../../../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 3002s ../../../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 3003s ../../../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 3003s ../../../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 3003s ../../../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 3003s ../../../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 3003s ../../../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 3003s ../../../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 3003s ../../../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 3003s ../../../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 3004s ../../../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 3004s ../../../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 3004s ../../../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 3004s ../../../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 3004s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3005s ../../../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 3006s ../../../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 3006s ../../../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 3006s ../../../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 3006s ../../../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 3006s ../../../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 3006s ../../../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 3006s ../../../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 3006s ../../../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 3006s ../../../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 3006s ../../../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 3006s ../../../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 3006s ../../../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 3006s ../../../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 3006s ../../../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 3006s ../../../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 3006s ../../../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 3007s ../../../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 3007s ../../../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 3007s ../../../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 3007s ../../../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 3008s ../../../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 3010s ../../../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 3010s ../../../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 3010s ../../../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 3011s ../../../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 3011s ../../../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 3011s ../../../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 3011s ../../../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 3011s ../../../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 3012s ../../../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 3012s ../../../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 3012s ../../../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 3012s ../../../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 3012s ../../../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 3013s ../../../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 3013s ../../../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 3013s ../../../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 3013s ../../../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 3013s ../../../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 3013s ../../../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 3013s ../../../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 3014s ../../../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 3014s ../../../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 3014s ../../../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 3014s ../../../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 3014s ../../../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 3014s ../../../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 3014s ../../../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 3014s ../../../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 3014s ../../../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 3014s ../../../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 3014s ../../../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 3014s ../../../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 3014s ../../../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 3014s ../../../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 3015s ../../../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 3015s ../../../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 3015s ../../../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 3015s ../../../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 3015s ../../../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 3015s ../../../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 3015s ../../../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 3015s ../../../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 3015s ../../../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 3016s ../../../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 3016s ../../../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 3016s ../../../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 3016s ../../../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 3016s ../../../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 3016s ../../../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 3016s ../../../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 3016s ../../../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 3017s ../../../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 3017s ../../../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 3017s ../../../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 3017s ../../../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 3017s ../../../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 3017s ../../../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 3018s ../../../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 3018s ../../../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 3018s ../../../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 3018s ../../../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 3018s ../../../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 3018s ../../../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 3019s ../../../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 3019s ../../../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 3019s ../../../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 3019s ../../../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 3019s ../../../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 3020s ../../../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 3020s ../../../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 3020s ../../../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 3020s ../../../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 3020s ../../../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 3020s ../../../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 3020s ../../../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 3020s ../../../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 3020s ../../../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 3021s ../../../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 3021s ../../../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 3021s ../../../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 3021s ../../../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 3021s ../../../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 3021s ../../../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 3021s ../../../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 3021s ../../../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 3021s ../../../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 3021s ../../../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 3021s ../../../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 3022s ../../../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 3022s ../../../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 3022s ../../../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 3022s ../../../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 3022s ../../../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 3022s ../../../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 3022s ../../../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 3022s ../../../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 3022s ../../../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 3022s ../../../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 3022s ../../../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 3023s ../../../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 3023s ../../../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 3023s ../../../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 3023s ../../../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 3023s ../../../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 3023s ../../../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 3023s ../../../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 3023s ../../../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 3023s ../../../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 3023s ../../../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 3023s ../../../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 3023s ../../../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 3023s ../../../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 3023s ../../../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 3023s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3024s ../../../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 3025s ../../../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 3025s ../../../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 3025s ../../../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 3025s ../../../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 3025s ../../../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 3025s ../../../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 3025s ../../../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 3026s ../../../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 3026s ../../../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 3026s ../../../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 3026s ../../../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 3026s ../../../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 3026s ../../../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 3026s ../../../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 3026s ../../../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 3026s ../../../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 3027s ../../../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 3027s ../../../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 3027s ../../../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 3027s ../../../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 3027s ../../../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 3027s ../../../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 3028s ../../../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 3028s ../../../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 3028s ../../../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 3028s ../../../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 3028s ../../../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 3028s ../../../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 3029s ../../../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 3029s ../../../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 3029s ../../../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 3029s ../../../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 3029s ../../../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 3029s ../../../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 3029s ../../../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 3029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data0-0-] PASSED 3029s ../../../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 3029s ../../../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 3029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data0-2-] PASSED 3029s ../../../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 3029s ../../../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 3029s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data1-0-] PASSED 3030s ../../../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 3030s ../../../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 3031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data1-2-] PASSED 3031s ../../../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 3031s ../../../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 3031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data2-0-] PASSED 3031s ../../../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 3031s ../../../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 3031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data2-2-] PASSED 3031s ../../../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 3031s ../../../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 3031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data3-0-] PASSED 3031s ../../../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 3031s ../../../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 3032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data3-2-] PASSED 3032s ../../../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 3032s ../../../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 3032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data4-0-] PASSED 3032s ../../../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 3032s ../../../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 3032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data4-2-] PASSED 3032s ../../../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 3032s ../../../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 3032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data5-0-] PASSED 3032s ../../../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 3032s ../../../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 3032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data5-2-] PASSED 3032s ../../../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 3032s ../../../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 3032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data6-0-] PASSED 3032s ../../../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 3033s ../../../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 3033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data6-2-] PASSED 3033s ../../../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 3033s ../../../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 3033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data7-0-] PASSED 3033s ../../../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 3033s ../../../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 3033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data7-2-] PASSED 3033s ../../../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 3033s ../../../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 3033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data8-0-] PASSED 3033s ../../../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 3033s ../../../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 3033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data8-2-] PASSED 3033s ../../../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 3033s ../../../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 3033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data9-0-] PASSED 3033s ../../../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 3033s ../../../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 3033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data9-2-] PASSED 3033s ../../../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 3034s ../../../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 3034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data10-0-] PASSED 3034s ../../../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 3034s ../../../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 3034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data10-2-] PASSED 3034s ../../../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 3034s ../../../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 3034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data11-0-] PASSED 3034s ../../../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 3035s ../../../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 3035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data11-2-] PASSED 3035s ../../../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 3035s ../../../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 3035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data12-0-] PASSED 3035s ../../../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 3035s ../../../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 3035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data12-2-] PASSED 3035s ../../../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 3035s ../../../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 3035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data13-0-] PASSED 3035s ../../../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 3035s ../../../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 3035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data13-2-] PASSED 3035s ../../../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 3036s ../../../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 3036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data14-0-] PASSED 3036s ../../../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 3036s ../../../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 3036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data14-2-] PASSED 3036s ../../../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 3036s ../../../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 3036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data15-0-] PASSED 3036s ../../../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 3037s ../../../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 3037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data15-2-] PASSED 3037s ../../../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 3037s ../../../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 3037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data16-0-] PASSED 3037s ../../../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 3037s ../../../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 3037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data16-2-] PASSED 3037s ../../../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 3038s ../../../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 3038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data17-0-] PASSED 3038s ../../../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 3038s ../../../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 3038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_apply_consistency_sum_nans[all_data17-2-] PASSED 3038s ../../../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 3039s ../../../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 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data0-0-0] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data0-0-1] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data0-2-0] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data0-2-1] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data1-0-0] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data1-0-1] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data1-2-0] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data1-2-1] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data2-0-0] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data2-0-1] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data2-2-0] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data2-2-1] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data3-0-0] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data3-0-1] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data3-2-0] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data3-2-1] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data4-0-0] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data4-0-1] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data4-2-0] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data4-2-1] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data5-0-0] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data5-0-1] PASSED 3039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data5-2-0] PASSED 3040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data5-2-1] PASSED 3040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data6-0-0] PASSED 3040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data6-0-1] PASSED 3040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data6-2-0] PASSED 3040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data6-2-1] PASSED 3041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data7-0-0] PASSED 3041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data7-0-1] PASSED 3041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data7-2-0] PASSED 3041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data7-2-1] PASSED 3042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data8-0-0] PASSED 3042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data8-0-1] PASSED 3042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data8-2-0] PASSED 3042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data8-2-1] PASSED 3043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data9-0-0] PASSED 3044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data9-0-1] PASSED 3046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data9-2-0] PASSED 3046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data9-2-1] PASSED 3047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data10-0-0] PASSED 3047s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data10-0-1] PASSED 3048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data10-2-0] PASSED 3048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data10-2-1] PASSED 3048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data11-0-0] PASSED 3049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data11-0-1] PASSED 3049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data11-2-0] PASSED 3049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data11-2-1] PASSED 3049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data12-0-0] PASSED 3049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data12-0-1] PASSED 3049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data12-2-0] PASSED 3050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data12-2-1] PASSED 3050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data13-0-0] PASSED 3050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data13-0-1] PASSED 3050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data13-2-0] PASSED 3050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data13-2-1] PASSED 3050s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data14-0-0] PASSED 3051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data14-0-1] PASSED 3051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data14-2-0] PASSED 3051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data14-2-1] PASSED 3051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data15-0-0] PASSED 3052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data15-0-1] PASSED 3052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data15-2-0] PASSED 3052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data15-2-1] PASSED 3052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data16-0-0] PASSED 3052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data16-0-1] PASSED 3052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data16-2-0] PASSED 3052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data16-2-1] PASSED 3052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data17-0-0] PASSED 3052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data17-0-1] PASSED 3052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data17-2-0] PASSED 3053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var[all_data17-2-1] PASSED 3053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data0-0-0] PASSED 3053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data0-0-1] PASSED 3053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data0-2-0] PASSED 3053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data0-2-1] PASSED 3053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data1-0-0] PASSED 3053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data1-0-1] PASSED 3053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data1-2-0] PASSED 3053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data1-2-1] PASSED 3053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data2-0-0] PASSED 3053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data2-0-1] PASSED 3054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data2-2-0] PASSED 3055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data2-2-1] PASSED 3056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data3-0-0] PASSED 3056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data3-0-1] PASSED 3056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data3-2-0] PASSED 3056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_moments_consistency_var_constant[consistent_data3-2-1] PASSED 3056s ../../../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 3056s ../../../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 3056s ../../../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 3056s ../../../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 3057s ../../../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 3057s ../../../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 3058s ../../../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 3059s ../../../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 3060s ../../../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 3060s ../../../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 3060s ../../../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 3060s ../../../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 3060s ../../../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 3060s ../../../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 3060s ../../../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 3060s ../../../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 3060s ../../../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 3061s ../../../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 3061s ../../../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 3061s ../../../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 3061s ../../../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 3061s ../../../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 3062s ../../../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 3062s ../../../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 3062s ../../../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 3062s ../../../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 3062s ../../../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 3062s ../../../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 3063s ../../../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 3063s ../../../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 3063s ../../../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 3064s ../../../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 3064s ../../../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 3064s ../../../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 3065s ../../../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 3065s ../../../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 3066s ../../../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 3066s ../../../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 3066s ../../../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 3066s ../../../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 3066s ../../../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 3066s ../../../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 3067s ../../../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 3067s ../../../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 3067s ../../../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 3067s ../../../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 3067s ../../../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 3068s ../../../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 3068s ../../../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 3068s ../../../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 3068s ../../../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 3068s ../../../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 3069s ../../../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 3069s ../../../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 3069s ../../../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 3069s ../../../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 3070s ../../../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 3070s ../../../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 3070s ../../../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 3070s ../../../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 3070s ../../../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 3070s ../../../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 3070s ../../../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 3071s ../../../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 3071s ../../../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 3071s ../../../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 3071s ../../../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 3071s ../../../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 3071s ../../../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 3072s ../../../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 3072s ../../../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 3072s ../../../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 3072s ../../../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 3072s ../../../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 3072s ../../../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 3072s ../../../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 3072s ../../../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 3072s ../../../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 3072s ../../../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 3072s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3073s ../../../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 3074s ../../../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 3074s ../../../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 3074s ../../../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 3074s ../../../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 3074s ../../../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 3074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data0-0] PASSED 3074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data0-2] PASSED 3074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data1-0] PASSED 3074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data1-2] PASSED 3074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data2-0] PASSED 3074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data2-2] PASSED 3074s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data3-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data3-2] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data4-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data4-2] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data5-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data5-2] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data6-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data6-2] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data7-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data7-2] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data8-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data8-2] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data9-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data9-2] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data10-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data10-2] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data11-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data11-2] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data12-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data12-2] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data13-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data13-2] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data14-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data14-2] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data15-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data15-2] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data16-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data16-2] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data17-0] PASSED 3075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_mean[all_data17-2] PASSED 3076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data0-0] PASSED 3076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data0-2] PASSED 3076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data1-0] PASSED 3076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data1-2] PASSED 3076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data2-0] PASSED 3076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data2-2] PASSED 3076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data3-0] PASSED 3076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_constant[consistent_data3-2] PASSED 3076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data0-0] PASSED 3076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data0-2] PASSED 3076s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data1-0] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data1-2] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data2-0] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data2-2] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data3-0] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data3-2] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data4-0] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data4-2] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data5-0] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data5-2] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data6-0] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data6-2] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data7-0] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data7-2] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data8-0] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data8-2] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data9-0] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data9-2] PASSED 3077s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data10-0] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data10-2] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data11-0] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data11-2] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data12-0] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data12-2] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data13-0] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data13-2] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data14-0] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data14-2] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data15-0] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data15-2] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data16-0] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data16-2] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data17-0] PASSED 3078s ../../../usr/lib/python3/dist-packages/pandas/tests/window/moments/test_moments_consistency_expanding.py::test_expanding_consistency_var_debiasing_factors[all_data17-2] PASSED 3078s ../../../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 3078s ../../../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 3079s ../../../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 3079s ../../../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 3079s ../../../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 3079s ../../../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 3079s ../../../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 3079s ../../../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 3079s ../../../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 3079s ../../../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 3079s ../../../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 3079s ../../../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 3079s ../../../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 3079s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3080s ../../../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 3081s ../../../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 3081s ../../../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 3081s ../../../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 3081s ../../../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 3081s ../../../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 3081s ../../../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 3081s ../../../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 3081s ../../../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 3081s ../../../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 3081s ../../../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 3081s ../../../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 3081s ../../../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 3081s ../../../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 3081s ../../../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 3081s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3082s ../../../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 3083s ../../../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 3083s ../../../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 3083s ../../../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 3083s ../../../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 3083s ../../../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 3083s ../../../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 3083s ../../../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 3083s ../../../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 3083s ../../../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 3083s ../../../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 3083s ../../../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 3083s ../../../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 3083s ../../../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 3083s ../../../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 3083s ../../../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 3083s ../../../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 3084s ../../../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 3084s ../../../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 3084s ../../../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 3084s ../../../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 3084s ../../../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 3084s ../../../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 3084s ../../../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 3084s ../../../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 3084s ../../../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 3085s ../../../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 3085s ../../../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 3085s ../../../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 3085s ../../../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 3085s ../../../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 3085s ../../../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 3085s ../../../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 3085s ../../../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 3085s ../../../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 3087s ../../../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 3087s ../../../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 3087s ../../../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 3088s ../../../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 3088s ../../../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 3088s ../../../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 3088s ../../../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 3088s ../../../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 3088s ../../../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 3088s ../../../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 3088s ../../../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 3088s ../../../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 3089s ../../../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 3089s ../../../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 3089s ../../../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 3089s ../../../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 3090s ../../../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 3090s ../../../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 3090s ../../../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 3090s ../../../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 3090s ../../../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 3090s ../../../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 3090s ../../../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 3091s ../../../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 3091s ../../../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 3091s ../../../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 3091s ../../../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 3091s ../../../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 3092s ../../../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 3092s ../../../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 3092s ../../../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 3092s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3093s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3094s ../../../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 3095s ../../../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 3095s ../../../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 3095s ../../../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 3095s ../../../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 3095s ../../../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 3095s ../../../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 3097s ../../../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 3099s ../../../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 3107s ../../../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 3110s ../../../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 3110s ../../../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 3111s ../../../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 3111s ../../../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 3111s ../../../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 3112s ../../../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 3112s ../../../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 3112s ../../../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 3112s ../../../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 3112s ../../../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 3112s ../../../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 3112s ../../../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 3112s ../../../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 3113s ../../../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 3113s ../../../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 3113s ../../../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 3113s ../../../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 3113s ../../../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 3113s ../../../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 3113s ../../../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 3113s ../../../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 3113s ../../../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 3113s ../../../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 3114s ../../../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 3114s ../../../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 3114s ../../../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 3114s ../../../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 3114s ../../../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 3114s ../../../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 3115s ../../../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 3115s ../../../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 3115s ../../../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 3115s ../../../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 3115s ../../../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 3115s ../../../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 3115s ../../../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 3115s ../../../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 3115s ../../../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 3115s ../../../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 3115s ../../../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 3115s ../../../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 3115s ../../../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 3116s ../../../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 3116s ../../../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 3116s ../../../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 3116s ../../../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 3116s ../../../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 3116s ../../../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 3116s ../../../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 3116s ../../../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 3116s ../../../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 3116s ../../../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 3116s ../../../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 3116s ../../../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 3116s ../../../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 3116s ../../../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 3117s ../../../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 3117s ../../../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 3117s ../../../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 3117s ../../../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 3117s ../../../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 3117s ../../../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 3117s ../../../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 3117s ../../../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 3117s ../../../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 3117s ../../../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 3117s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3118s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3119s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3120s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3121s ../../../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 3122s ../../../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 3122s ../../../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 3122s ../../../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 3122s ../../../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 3122s ../../../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 3122s ../../../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 3122s ../../../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 3122s ../../../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 3122s ../../../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 3122s ../../../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 3122s ../../../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 3122s ../../../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 3122s ../../../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 3122s ../../../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 3123s ../../../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 3123s ../../../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 3123s ../../../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 3123s ../../../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 3123s ../../../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 3123s ../../../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 3123s ../../../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 3123s ../../../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 3123s ../../../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 3123s ../../../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 3124s ../../../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 3124s ../../../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 3124s ../../../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 3124s ../../../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 3124s ../../../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 3124s ../../../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 3124s ../../../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 3124s ../../../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 3124s ../../../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 3125s ../../../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 3125s ../../../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 3125s ../../../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 3125s ../../../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 3125s ../../../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 3125s ../../../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 3125s ../../../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 3125s ../../../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 3125s ../../../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 3125s ../../../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 3125s ../../../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 3125s ../../../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 3125s ../../../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 3125s ../../../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 3125s ../../../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 3126s ../../../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 3126s ../../../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 3126s ../../../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 3126s ../../../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 3126s ../../../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 3126s ../../../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 3126s ../../../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 3126s ../../../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 3126s ../../../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 3126s ../../../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 3126s ../../../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 3126s ../../../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 3126s ../../../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 3126s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3127s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3128s ../../../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 3129s ../../../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 3129s ../../../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 3129s ../../../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 3129s ../../../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 3129s ../../../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 3129s ../../../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 3129s ../../../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 3129s ../../../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 3129s ../../../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 3130s ../../../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 3130s ../../../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 3130s ../../../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 3130s ../../../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 3130s ../../../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 3130s ../../../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 3130s ../../../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 3130s ../../../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 3130s ../../../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 3130s ../../../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 3130s ../../../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 3130s ../../../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 3130s ../../../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 3130s ../../../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 3130s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3131s ../../../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 3132s ../../../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 3132s ../../../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 3132s ../../../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 3132s ../../../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 3132s ../../../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 3132s ../../../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 3132s ../../../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 3132s ../../../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 3132s ../../../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 3132s ../../../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 3133s ../../../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 3133s ../../../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 3133s ../../../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 3133s ../../../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 3133s ../../../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 3133s ../../../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 3133s ../../../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 3133s ../../../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 3133s ../../../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 3135s ../../../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 3135s ../../../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 3136s ../../../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 3136s ../../../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 3136s ../../../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 3136s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3137s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3138s ../../../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 3139s ../../../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 3139s ../../../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 3139s ../../../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 3139s ../../../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 3139s ../../../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 3139s ../../../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 3139s ../../../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 3139s ../../../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 3139s ../../../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 3140s ../../../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 3140s ../../../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 3140s ../../../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 3140s ../../../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 3140s ../../../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 3140s ../../../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 3140s ../../../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 3140s ../../../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 3140s ../../../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 3141s ../../../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 3141s ../../../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 3141s ../../../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 3141s ../../../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 3141s ../../../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 3141s ../../../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 3141s ../../../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 3141s ../../../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 3142s ../../../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 3142s ../../../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 3142s ../../../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 3142s ../../../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 3142s ../../../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 3142s ../../../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 3142s ../../../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 3142s ../../../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 3142s ../../../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 3143s ../../../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 3143s ../../../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 3143s ../../../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 3143s ../../../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 3143s ../../../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 3143s ../../../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 3143s ../../../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 3143s ../../../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 3143s ../../../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 3143s ../../../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 3143s ../../../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 3144s ../../../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 3144s ../../../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 3144s ../../../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 3144s ../../../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 3144s ../../../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 3145s ../../../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 3145s ../../../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 3145s ../../../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 3145s ../../../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 3145s ../../../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 3145s ../../../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 3145s ../../../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 3145s ../../../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 3145s ../../../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 3145s ../../../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 3145s ../../../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 3145s ../../../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 3145s ../../../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 3145s ../../../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 3146s ../../../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 3146s ../../../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 3146s ../../../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 3146s ../../../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 3147s ../../../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 3147s ../../../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 3147s ../../../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 3147s ../../../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 3147s ../../../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 3147s ../../../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 3147s ../../../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 3147s ../../../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 3147s ../../../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 3147s ../../../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 3147s ../../../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 3147s ../../../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 3148s ../../../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 3148s ../../../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 3148s ../../../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 3148s ../../../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 3148s ../../../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 3148s ../../../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 3148s ../../../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 3148s ../../../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 3148s ../../../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 3148s ../../../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 3148s ../../../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 3148s ../../../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 3149s ../../../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 3149s ../../../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 3149s ../../../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 3149s ../../../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 3149s ../../../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 3149s ../../../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 3149s ../../../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 3149s ../../../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 3149s ../../../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 3149s ../../../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 3149s ../../../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 3149s ../../../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 3149s ../../../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 3149s ../../../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 3149s ../../../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 3149s ../../../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 3150s ../../../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 3150s ../../../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 3150s ../../../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 3150s ../../../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 3150s ../../../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 3150s ../../../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 3150s ../../../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 3150s ../../../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 3150s ../../../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 3150s ../../../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 3150s ../../../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 3150s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3151s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3152s ../../../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 3153s ../../../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 3153s ../../../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 3153s ../../../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 3153s ../../../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 3153s ../../../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 3153s ../../../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 3153s ../../../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 3153s ../../../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 3153s ../../../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 3153s ../../../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 3153s ../../../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 3153s ../../../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 3153s ../../../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 3153s ../../../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 3154s ../../../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 3154s ../../../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 3154s ../../../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 3154s ../../../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 3154s ../../../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 3154s ../../../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 3154s ../../../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 3155s ../../../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 3155s ../../../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 3155s ../../../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 3155s ../../../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 3156s ../../../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 3156s ../../../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 3156s ../../../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 3156s ../../../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 3156s ../../../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 3156s ../../../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 3156s ../../../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 3157s ../../../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 3157s ../../../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 3157s ../../../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 3157s ../../../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 3157s ../../../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 3157s ../../../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 3157s ../../../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 3157s ../../../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 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_getitem[None] PASSED 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_getitem[1] PASSED 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_getitem[2] PASSED 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_getitem[5] PASSED 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_getitem[10] PASSED 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_select_bad_cols PASSED 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_attribute_access PASSED 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::tests_skip_nuisance[None] PASSED 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::tests_skip_nuisance[1] PASSED 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::tests_skip_nuisance[2] PASSED 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::tests_skip_nuisance[5] PASSED 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::tests_skip_nuisance[10] PASSED 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_sum_object_str_raises[None] PASSED 3157s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_sum_object_str_raises[1] PASSED 3158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_sum_object_str_raises[2] PASSED 3158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_sum_object_str_raises[5] PASSED 3158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_sum_object_str_raises[10] PASSED 3158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg[None] PASSED 3158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg[1] PASSED 3158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg[2] PASSED 3158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg[5] PASSED 3159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg[10] PASSED 3159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_multi_axis_1_raises[func0] PASSED 3159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_multi_axis_1_raises[func1] PASSED 3159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_multi_axis_1_raises[func2] PASSED 3159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_multi_axis_1_raises[func3] PASSED 3159s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_apply[True] PASSED 3160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_apply[False] PASSED 3160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_consistency[None] PASSED 3160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_consistency[1] PASSED 3160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_consistency[2] PASSED 3160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_consistency[5] PASSED 3160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_consistency[10] PASSED 3160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_agg_nested_dicts PASSED 3160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_count_nonnumeric_types[None] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_count_nonnumeric_types[1] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_count_nonnumeric_types[2] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_count_nonnumeric_types[5] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_count_nonnumeric_types[10] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_preserve_metadata PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_multiple_agg_funcs[rolling-2-expected_vals0] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_multiple_agg_funcs[expanding-None-expected_vals1] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-None-None] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-None-1] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-None-2] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-None-5] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-None-10] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-1-None] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-1-1] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-1-2] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-1-5] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-True-1-10] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-None-None] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-None-1] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-None-2] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-None-5] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-None-10] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-1-None] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-1-1] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-1-2] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-1-5] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-left-False-1-10] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-None-None] PASSED 3161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-None-1] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-None-2] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-None-5] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-None-10] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-1-None] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-1-1] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-1-2] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-1-5] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-True-1-10] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-None-None] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-None-1] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-None-2] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-None-5] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-None-10] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-1-None] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-1-1] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-1-2] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-1-5] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-right-False-1-10] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-None-None] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-None-1] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-None-2] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-None-5] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-None-10] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-1-None] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-1-1] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-1-2] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-1-5] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-True-1-10] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-None-None] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-None-1] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-None-2] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-None-5] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-None-10] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-1-None] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-1-1] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-1-2] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-1-5] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-both-False-1-10] PASSED 3162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-None-None] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-None-1] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-None-2] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-None-5] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-None-10] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-1-None] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-1-1] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-1-2] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-1-5] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-True-1-10] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-None-None] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-None-1] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-None-2] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-None-5] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-None-10] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-1-None] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-1-1] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-1-2] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-1-5] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sum-neither-False-1-10] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-None-None] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-None-1] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-None-2] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-None-5] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-None-10] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-1-None] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-1-1] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-1-2] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-1-5] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-True-1-10] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-None-None] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-None-1] PASSED 3163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-None-2] PASSED 3164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-None-5] PASSED 3164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-None-10] PASSED 3164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-1-None] PASSED 3164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-1-1] PASSED 3164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-1-2] PASSED 3164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-1-5] PASSED 3164s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-left-False-1-10] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-None-None] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-None-1] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-None-2] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-None-5] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-None-10] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-1-None] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-1-1] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-1-2] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-1-5] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-True-1-10] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-None-None] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-None-1] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-None-2] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-None-5] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-None-10] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-1-None] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-1-1] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-1-2] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-1-5] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-right-False-1-10] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-None-None] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-None-1] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-None-2] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-None-5] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-None-10] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-1-None] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-1-1] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-1-2] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-1-5] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-True-1-10] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-None-None] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-None-1] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-None-2] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-None-5] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-None-10] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-1-None] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-1-1] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-1-2] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-1-5] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-both-False-1-10] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-None-None] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-None-1] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-None-2] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-None-5] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-None-10] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-1-None] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-1-1] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-1-2] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-1-5] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-True-1-10] PASSED 3165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-None-None] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-None-1] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-None-2] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-None-5] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-None-10] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-1-None] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-1-1] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-1-2] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-1-5] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[mean-neither-False-1-10] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-None-None] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-None-1] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-None-2] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-None-5] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-None-10] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-1-None] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-1-1] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-1-2] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-1-5] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-True-1-10] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-None-None] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-None-1] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-None-2] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-None-5] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-None-10] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-1-None] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-1-1] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-1-2] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-1-5] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-left-False-1-10] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-None-None] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-None-1] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-None-2] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-None-5] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-None-10] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-1-None] PASSED 3166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-1-1] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-1-2] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-1-5] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-True-1-10] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-None-None] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-None-1] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-None-2] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-None-5] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-None-10] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-1-None] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-1-1] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-1-2] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-1-5] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-right-False-1-10] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-None-None] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-None-1] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-None-2] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-None-5] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-None-10] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-1-None] PASSED 3167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-1-1] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-1-2] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-1-5] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-True-1-10] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-None-None] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-None-1] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-None-2] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-None-5] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-None-10] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-1-None] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-1-1] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-1-2] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-1-5] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-both-False-1-10] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-None-None] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-None-1] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-None-2] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-None-5] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-None-10] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-1-None] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-1-1] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-1-2] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-1-5] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-True-1-10] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-None-None] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-None-1] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-None-2] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-None-5] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-None-10] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-1-None] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-1-1] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-1-2] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-1-5] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[median-neither-False-1-10] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-None-None] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-None-1] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-None-2] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-None-5] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-None-10] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-1-None] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-1-1] PASSED 3168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-1-2] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-1-5] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-True-1-10] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-None-None] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-None-1] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-None-2] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-None-5] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-None-10] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-1-None] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-1-1] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-1-2] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-1-5] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-left-False-1-10] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-None-None] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-None-1] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-None-2] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-None-5] PASSED 3169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-None-10] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-1-None] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-1-1] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-1-2] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-1-5] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-True-1-10] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-None-None] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-None-1] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-None-2] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-None-5] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-None-10] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-1-None] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-1-1] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-1-2] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-1-5] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-right-False-1-10] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-None-None] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-None-1] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-None-2] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-None-5] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-None-10] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-1-None] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-1-1] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-1-2] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-1-5] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-True-1-10] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-None-None] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-None-1] PASSED 3170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-None-2] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-None-5] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-None-10] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-1-None] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-1-1] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-1-2] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-1-5] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-both-False-1-10] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-None-None] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-None-1] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-None-2] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-None-5] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-None-10] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-1-None] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-1-1] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-1-2] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-1-5] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-True-1-10] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-None-None] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-None-1] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-None-2] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-None-5] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-None-10] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-1-None] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-1-1] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-1-2] PASSED 3171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-1-5] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[max-neither-False-1-10] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-None-None] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-None-1] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-None-2] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-None-5] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-None-10] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-1-None] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-1-1] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-1-2] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-1-5] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-True-1-10] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-None-None] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-None-1] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-None-2] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-None-5] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-None-10] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-1-None] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-1-1] PASSED 3172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-1-2] PASSED 3173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-1-5] PASSED 3173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-left-False-1-10] PASSED 3173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-None-None] PASSED 3173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-None-1] PASSED 3173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-None-2] PASSED 3173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-None-5] PASSED 3174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-None-10] PASSED 3174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-1-None] PASSED 3174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-1-1] PASSED 3174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-1-2] PASSED 3174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-1-5] PASSED 3175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-True-1-10] PASSED 3175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-None-None] PASSED 3175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-None-1] PASSED 3175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-None-2] PASSED 3175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-None-5] PASSED 3175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-None-10] PASSED 3175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-1-None] PASSED 3175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-1-1] PASSED 3175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-1-2] PASSED 3176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-1-5] PASSED 3176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-right-False-1-10] PASSED 3176s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-None-None] PASSED 3177s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-None-1] PASSED 3177s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-None-2] PASSED 3178s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-None-5] PASSED 3178s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-None-10] PASSED 3178s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-1-None] PASSED 3179s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-1-1] PASSED 3179s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-1-2] PASSED 3179s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-1-5] PASSED 3179s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-True-1-10] PASSED 3179s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-None-None] PASSED 3179s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-None-1] PASSED 3179s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-None-2] PASSED 3180s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-None-5] PASSED 3180s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-None-10] PASSED 3180s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-1-None] PASSED 3180s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-1-1] PASSED 3180s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-1-2] PASSED 3181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-1-5] PASSED 3181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-both-False-1-10] PASSED 3181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-None-None] PASSED 3181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-None-1] PASSED 3181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-None-2] PASSED 3181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-None-5] PASSED 3181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-None-10] PASSED 3181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-1-None] PASSED 3182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-1-1] PASSED 3182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-1-2] PASSED 3182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-1-5] PASSED 3182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-True-1-10] PASSED 3182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-None-None] PASSED 3182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-None-1] PASSED 3183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-None-2] PASSED 3183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-None-5] PASSED 3183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-None-10] PASSED 3183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-1-None] PASSED 3183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-1-1] PASSED 3183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-1-2] PASSED 3183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-1-5] PASSED 3183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[min-neither-False-1-10] PASSED 3183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-None-None] PASSED 3183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-None-1] PASSED 3183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-None-2] PASSED 3184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-None-5] PASSED 3184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-None-10] PASSED 3184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-1-None] PASSED 3184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-1-1] PASSED 3184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-1-2] PASSED 3184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-1-5] PASSED 3184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-True-1-10] PASSED 3184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-None-None] PASSED 3184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-None-1] PASSED 3184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-None-2] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-None-5] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-None-10] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-1-None] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-1-1] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-1-2] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-1-5] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-left-False-1-10] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-None-None] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-None-1] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-None-2] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-None-5] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-None-10] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-1-None] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-1-1] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-1-2] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-1-5] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-True-1-10] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-None-None] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-None-1] PASSED 3185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-None-2] PASSED 3186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-None-5] PASSED 3186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-None-10] PASSED 3186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-1-None] PASSED 3186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-1-1] PASSED 3186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-1-2] PASSED 3186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-1-5] PASSED 3186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-right-False-1-10] PASSED 3186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-None-None] PASSED 3186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-None-1] PASSED 3186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-None-2] PASSED 3186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-None-5] PASSED 3186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-None-10] PASSED 3186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-1-None] PASSED 3186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-1-1] PASSED 3187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-1-2] PASSED 3187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-1-5] PASSED 3187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-True-1-10] PASSED 3187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-None-None] PASSED 3187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-None-1] PASSED 3187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-None-2] PASSED 3187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-None-5] PASSED 3187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-None-10] PASSED 3187s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-1-None] PASSED 3188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-1-1] PASSED 3188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-1-2] PASSED 3188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-1-5] PASSED 3188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-both-False-1-10] PASSED 3188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-None-None] PASSED 3188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-None-1] PASSED 3188s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-None-2] PASSED 3189s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-None-5] PASSED 3189s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-None-10] PASSED 3189s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-1-None] PASSED 3189s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-1-1] PASSED 3189s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-1-2] PASSED 3189s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-1-5] PASSED 3189s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-True-1-10] PASSED 3189s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-None-None] PASSED 3189s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-None-1] PASSED 3189s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-None-2] PASSED 3190s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-None-5] PASSED 3190s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-None-10] PASSED 3190s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-1-None] PASSED 3190s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-1-1] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-1-2] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-1-5] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[var-neither-False-1-10] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-None-None] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-None-1] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-None-2] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-None-5] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-None-10] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-1-None] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-1-1] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-1-2] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-1-5] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-True-1-10] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-None-None] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-None-1] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-None-2] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-None-5] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-None-10] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-1-None] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-1-1] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-1-2] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-1-5] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-left-False-1-10] PASSED 3191s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-None-None] PASSED 3192s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-None-1] PASSED 3192s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-None-2] PASSED 3192s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-None-5] PASSED 3192s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-None-10] PASSED 3192s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-1-None] PASSED 3192s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-1-1] PASSED 3192s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-1-2] PASSED 3192s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-1-5] PASSED 3192s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-True-1-10] PASSED 3193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-None-None] PASSED 3193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-None-1] PASSED 3193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-None-2] PASSED 3194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-None-5] PASSED 3194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-None-10] PASSED 3194s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-1-None] PASSED 3195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-1-1] PASSED 3195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-1-2] PASSED 3195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-1-5] PASSED 3195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-right-False-1-10] PASSED 3195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-None-None] PASSED 3195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-None-1] PASSED 3195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-None-2] PASSED 3195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-None-5] PASSED 3195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-None-10] PASSED 3195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-1-None] PASSED 3195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-1-1] PASSED 3195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-1-2] PASSED 3196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-1-5] PASSED 3196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-True-1-10] PASSED 3196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-None-None] PASSED 3196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-None-1] PASSED 3196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-None-2] PASSED 3197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-None-5] PASSED 3197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-None-10] PASSED 3197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-1-None] PASSED 3197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-1-1] PASSED 3198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-1-2] PASSED 3198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-1-5] PASSED 3198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-both-False-1-10] PASSED 3198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-None-None] PASSED 3198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-None-1] PASSED 3198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-None-2] PASSED 3198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-None-5] PASSED 3198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-None-10] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-1-None] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-1-1] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-1-2] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-1-5] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-True-1-10] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-None-None] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-None-1] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-None-2] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-None-5] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-None-10] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-1-None] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-1-1] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-1-2] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-1-5] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[std-neither-False-1-10] PASSED 3199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-None-None] PASSED 3200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-None-1] PASSED 3200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-None-2] PASSED 3200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-None-5] PASSED 3200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-None-10] PASSED 3200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-1-None] PASSED 3200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-1-1] PASSED 3200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-1-2] PASSED 3200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-1-5] PASSED 3200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-True-1-10] PASSED 3200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-None-None] PASSED 3200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-None-1] PASSED 3201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-None-2] PASSED 3201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-None-5] PASSED 3201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-None-10] PASSED 3201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-1-None] PASSED 3201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-1-1] PASSED 3201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-1-2] PASSED 3201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-1-5] PASSED 3201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-left-False-1-10] PASSED 3201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-None-None] PASSED 3201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-None-1] PASSED 3201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-None-2] PASSED 3201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-None-5] PASSED 3201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-None-10] PASSED 3202s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-1-None] PASSED 3202s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-1-1] PASSED 3202s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-1-2] PASSED 3202s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-1-5] PASSED 3202s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-True-1-10] PASSED 3202s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-None-None] PASSED 3202s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-None-1] PASSED 3203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-None-2] PASSED 3203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-None-5] PASSED 3203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-None-10] PASSED 3203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-1-None] PASSED 3203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-1-1] PASSED 3203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-1-2] PASSED 3203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-1-5] PASSED 3203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-right-False-1-10] PASSED 3203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-None-None] PASSED 3203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-None-1] PASSED 3203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-None-2] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-None-5] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-None-10] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-1-None] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-1-1] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-1-2] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-1-5] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-True-1-10] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-None-None] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-None-1] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-None-2] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-None-5] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-None-10] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-1-None] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-1-1] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-1-2] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-1-5] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-both-False-1-10] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-None-None] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-None-1] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-None-2] PASSED 3204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-None-5] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-None-10] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-1-None] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-1-1] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-1-2] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-1-5] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-True-1-10] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-None-None] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-None-1] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-None-2] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-None-5] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-None-10] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-1-None] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-1-1] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-1-2] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-1-5] PASSED 3205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[kurt-neither-False-1-10] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-None-None] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-None-1] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-None-2] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-None-5] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-None-10] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-1-None] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-1-1] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-1-2] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-1-5] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-True-1-10] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-None-None] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-None-1] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-None-2] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-None-5] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-None-10] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-1-None] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-1-1] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-1-2] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-1-5] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-left-False-1-10] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-None-None] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-None-1] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-None-2] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-None-5] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-None-10] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-1-None] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-1-1] PASSED 3206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-1-2] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-1-5] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-True-1-10] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-None-None] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-None-1] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-None-2] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-None-5] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-None-10] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-1-None] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-1-1] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-1-2] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-1-5] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-right-False-1-10] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-None-None] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-None-1] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-None-2] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-None-5] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-None-10] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-1-None] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-1-1] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-1-2] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-1-5] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-True-1-10] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-None-None] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-None-1] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-None-2] PASSED 3207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-None-5] PASSED 3208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-None-10] PASSED 3208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-1-None] PASSED 3208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-1-1] PASSED 3208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-1-2] PASSED 3208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-1-5] PASSED 3208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-both-False-1-10] PASSED 3208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-None-None] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-None-1] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-None-2] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-None-5] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-None-10] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-1-None] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-1-1] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-1-2] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-1-5] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-True-1-10] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-None-None] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-None-1] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-None-2] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-None-5] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-None-10] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-1-None] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-1-1] PASSED 3209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-1-2] PASSED 3210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-1-5] PASSED 3210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[skew-neither-False-1-10] PASSED 3210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-None-None] PASSED 3210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-None-1] PASSED 3210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-None-2] PASSED 3210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-None-5] PASSED 3210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-None-10] PASSED 3210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-1-None] PASSED 3210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-1-1] PASSED 3210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-1-2] PASSED 3210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-1-5] PASSED 3210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-True-1-10] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-None-None] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-None-1] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-None-2] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-None-5] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-None-10] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-1-None] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-1-1] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-1-2] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-1-5] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-left-False-1-10] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-None-None] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-None-1] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-None-2] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-None-5] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-None-10] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-1-None] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-1-1] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-1-2] PASSED 3211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-1-5] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-True-1-10] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-None-None] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-None-1] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-None-2] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-None-5] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-None-10] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-1-None] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-1-1] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-1-2] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-1-5] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-right-False-1-10] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-None-None] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-None-1] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-None-2] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-None-5] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-None-10] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-1-None] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-1-1] PASSED 3212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-1-2] PASSED 3213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-1-5] PASSED 3213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-True-1-10] PASSED 3213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-None-None] PASSED 3213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-None-1] PASSED 3213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-None-2] PASSED 3213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-None-5] PASSED 3213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-None-10] PASSED 3213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-1-None] PASSED 3213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-1-1] PASSED 3213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-1-2] PASSED 3213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-1-5] PASSED 3213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-both-False-1-10] PASSED 3214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-None-None] PASSED 3214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-None-1] PASSED 3214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-None-2] PASSED 3214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-None-5] PASSED 3214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-None-10] PASSED 3214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-1-None] PASSED 3214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-1-1] PASSED 3214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-1-2] PASSED 3214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-1-5] PASSED 3214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-True-1-10] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-None-None] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-None-1] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-None-2] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-None-5] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-None-10] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-1-None] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-1-1] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-1-2] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-1-5] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[count-neither-False-1-10] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-None-None] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-None-1] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-None-2] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-None-5] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-None-10] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-1-None] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-1-1] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-1-2] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-1-5] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-True-1-10] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-None-None] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-None-1] PASSED 3215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-None-2] PASSED 3216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-None-5] PASSED 3216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-None-10] PASSED 3216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-1-None] PASSED 3216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-1-1] PASSED 3216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-1-2] PASSED 3216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-1-5] PASSED 3216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-left-False-1-10] PASSED 3216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-None-None] PASSED 3216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-None-1] PASSED 3216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-None-2] PASSED 3216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-None-5] PASSED 3216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-None-10] PASSED 3216s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-1-None] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-1-1] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-1-2] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-1-5] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-True-1-10] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-None-None] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-None-1] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-None-2] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-None-5] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-None-10] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-1-None] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-1-1] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-1-2] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-1-5] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-right-False-1-10] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-None-None] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-None-1] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-None-2] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-None-5] PASSED 3217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-None-10] PASSED 3218s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-1-None] PASSED 3219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-1-1] PASSED 3219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-1-2] PASSED 3219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-1-5] PASSED 3219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-True-1-10] PASSED 3219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-None-None] PASSED 3219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-None-1] PASSED 3219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-None-2] PASSED 3219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-None-5] PASSED 3219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-None-10] PASSED 3220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-1-None] PASSED 3220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-1-1] PASSED 3220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-1-2] PASSED 3220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-1-5] PASSED 3221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-both-False-1-10] PASSED 3221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-None-None] PASSED 3221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-None-1] PASSED 3221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-None-2] PASSED 3222s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-None-5] PASSED 3222s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-None-10] PASSED 3222s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-1-None] PASSED 3223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-1-1] PASSED 3223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-1-2] PASSED 3223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-1-5] PASSED 3223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-True-1-10] PASSED 3223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-None-None] PASSED 3223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-None-1] PASSED 3223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-None-2] PASSED 3223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-None-5] PASSED 3224s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-None-10] PASSED 3225s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-1-None] PASSED 3225s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-1-1] PASSED 3226s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-1-2] PASSED 3226s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-1-5] PASSED 3226s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_dont_modify_attributes_after_methods[sem-neither-False-1-10] PASSED 3227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_centered_axis_validation[None] PASSED 3227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_centered_axis_validation[1] PASSED 3227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_centered_axis_validation[2] PASSED 3227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_centered_axis_validation[5] PASSED 3227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_centered_axis_validation[10] PASSED 3227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_min_min_periods[None] PASSED 3227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_min_min_periods[1] PASSED 3227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_min_min_periods[2] PASSED 3227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_min_min_periods[5] PASSED 3227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_min_min_periods[10] PASSED 3227s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_max_min_periods[None] PASSED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_max_min_periods[1] PASSED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_max_min_periods[2] PASSED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_max_min_periods[5] PASSED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_api.py::test_rolling_max_min_periods[10] PASSED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_invalid_raw[None] PASSED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_invalid_raw[1] PASSED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_invalid_raw[0] PASSED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_out_of_bounds[engine_and_raw0] SKIPPED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_out_of_bounds[engine_and_raw1] PASSED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_out_of_bounds[engine_and_raw2] PASSED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_with_pandas_objects[2] PASSED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_with_pandas_objects[2s] PASSED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw0-None] SKIPPED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw0-1] SKIPPED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw0-2] SKIPPED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw0-5] SKIPPED 3228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw0-10] SKIPPED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw1-None] PASSED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw1-1] PASSED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw1-2] PASSED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw1-5] PASSED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw1-10] PASSED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw2-None] PASSED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw2-1] PASSED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw2-2] PASSED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw2-5] PASSED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply[engine_and_raw2-10] PASSED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_all_apply[engine_and_raw0] SKIPPED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_all_apply[engine_and_raw1] PASSED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_all_apply[engine_and_raw2] PASSED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_ragged_apply[engine_and_raw0] SKIPPED 3229s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_ragged_apply[engine_and_raw1] PASSED 3230s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_ragged_apply[engine_and_raw2] PASSED 3230s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_invalid_engine PASSED 3230s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_invalid_engine_kwargs_cython PASSED 3230s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_invalid_raw_numba PASSED 3230s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_args_kwargs[args_kwargs0] PASSED 3230s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_rolling_apply_args_kwargs[args_kwargs1] PASSED 3230s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_nans[True] PASSED 3230s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_nans[False] PASSED 3230s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_center[True] PASSED 3230s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_center[False] PASSED 3231s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_series[True] PASSED 3231s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_series[False] PASSED 3231s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_frame[True] PASSED 3231s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_frame[False] PASSED 3231s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_time_rule_series[True] PASSED 3232s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_time_rule_series[False] PASSED 3232s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_time_rule_frame[True] PASSED 3232s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_time_rule_frame[False] PASSED 3232s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-None-0] PASSED 3232s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-None-99] PASSED 3233s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-None-100] PASSED 3233s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-1-0] PASSED 3233s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-1-99] PASSED 3233s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-1-100] PASSED 3234s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-2-0] PASSED 3234s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-2-99] PASSED 3234s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-2-100] PASSED 3234s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-5-0] PASSED 3234s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-5-99] PASSED 3234s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-5-100] PASSED 3235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-10-0] PASSED 3235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-10-99] PASSED 3235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[True-10-100] PASSED 3235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-None-0] PASSED 3235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-None-99] PASSED 3235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-None-100] PASSED 3235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-1-0] PASSED 3235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-1-99] PASSED 3235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-1-100] PASSED 3236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-2-0] PASSED 3236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-2-99] PASSED 3236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-2-100] PASSED 3236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-5-0] PASSED 3236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-5-99] PASSED 3237s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-5-100] PASSED 3237s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-10-0] PASSED 3238s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-10-99] PASSED 3238s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_min_periods[False-10-100] PASSED 3238s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_center_reindex_series[True] PASSED 3239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_center_reindex_series[False] PASSED 3239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_center_reindex_frame[True] PASSED 3241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_center_reindex_frame[False] PASSED 3241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_axis1[True] PASSED 3241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_apply.py::test_axis1[False] PASSED 3241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_bad_get_window_bounds_signature PASSED 3241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_expanding_indexer PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexer_constructor_arg PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexer_accepts_rolling_args PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-None-count-len-expected0-np_kwargs0] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-None-min-min-expected1-np_kwargs1] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-None-max-max-expected2-np_kwargs2] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-None-std-std-expected3-np_kwargs3] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-None-var-var-expected4-np_kwargs4] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-None-median-median-expected5-np_kwargs5] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-1-count-len-expected0-np_kwargs0] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-1-min-min-expected1-np_kwargs1] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-1-max-max-expected2-np_kwargs2] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-1-std-std-expected3-np_kwargs3] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-1-var-var-expected4-np_kwargs4] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-1-median-median-expected5-np_kwargs5] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-2-count-len-expected0-np_kwargs0] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-2-min-min-expected1-np_kwargs1] PASSED 3242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-2-max-max-expected2-np_kwargs2] PASSED 3243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-2-std-std-expected3-np_kwargs3] PASSED 3243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-2-var-var-expected4-np_kwargs4] PASSED 3243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-2-median-median-expected5-np_kwargs5] PASSED 3243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-5-count-len-expected0-np_kwargs0] PASSED 3243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-5-min-min-expected1-np_kwargs1] PASSED 3243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-5-max-max-expected2-np_kwargs2] PASSED 3243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-5-std-std-expected3-np_kwargs3] PASSED 3243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-5-var-var-expected4-np_kwargs4] PASSED 3243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-5-median-median-expected5-np_kwargs5] PASSED 3243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-10-count-len-expected0-np_kwargs0] PASSED 3243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-10-min-min-expected1-np_kwargs1] PASSED 3243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-10-max-max-expected2-np_kwargs2] PASSED 3244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-10-std-std-expected3-np_kwargs3] PASSED 3244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-10-var-var-expected4-np_kwargs4] PASSED 3244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[DataFrame-10-median-median-expected5-np_kwargs5] PASSED 3244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-None-count-len-expected0-np_kwargs0] PASSED 3244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-None-min-min-expected1-np_kwargs1] PASSED 3244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-None-max-max-expected2-np_kwargs2] PASSED 3244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-None-std-std-expected3-np_kwargs3] PASSED 3244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-None-var-var-expected4-np_kwargs4] PASSED 3244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-None-median-median-expected5-np_kwargs5] PASSED 3244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-1-count-len-expected0-np_kwargs0] PASSED 3245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-1-min-min-expected1-np_kwargs1] PASSED 3246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-1-max-max-expected2-np_kwargs2] PASSED 3246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-1-std-std-expected3-np_kwargs3] PASSED 3247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-1-var-var-expected4-np_kwargs4] PASSED 3247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-1-median-median-expected5-np_kwargs5] PASSED 3247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-2-count-len-expected0-np_kwargs0] PASSED 3248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-2-min-min-expected1-np_kwargs1] PASSED 3248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-2-max-max-expected2-np_kwargs2] PASSED 3249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-2-std-std-expected3-np_kwargs3] PASSED 3249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-2-var-var-expected4-np_kwargs4] PASSED 3249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-2-median-median-expected5-np_kwargs5] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-5-count-len-expected0-np_kwargs0] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-5-min-min-expected1-np_kwargs1] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-5-max-max-expected2-np_kwargs2] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-5-std-std-expected3-np_kwargs3] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-5-var-var-expected4-np_kwargs4] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-5-median-median-expected5-np_kwargs5] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-10-count-len-expected0-np_kwargs0] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-10-min-min-expected1-np_kwargs1] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-10-max-max-expected2-np_kwargs2] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-10-std-std-expected3-np_kwargs3] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-10-var-var-expected4-np_kwargs4] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_window[Series-10-median-median-expected5-np_kwargs5] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[DataFrame-None] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[DataFrame-1] PASSED 3250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[DataFrame-2] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[DataFrame-5] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[DataFrame-10] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[Series-None] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[Series-1] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[Series-2] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[Series-5] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_skewness[Series-10] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_cov_corr[cov-expected0] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_forward_cov_corr[corr-expected1] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_non_fixed_variable_window_indexer[right-expected_data0] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_non_fixed_variable_window_indexer[left-expected_data1] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_variableoffsetwindowindexer_not_dti PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_variableoffsetwindowindexer_not_offset PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_count[None] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_count[1] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_count[2] PASSED 3251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_count[5] PASSED 3252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_fixed_forward_indexer_count[10] PASSED 3252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexer_quantile_sum[median-args0-1-values0] PASSED 3252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexer_quantile_sum[median-args0--1-values1] PASSED 3252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexer_quantile_sum[quantile-args1-1-values0] PASSED 3252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexer_quantile_sum[quantile-args1--1-values1] PASSED 3252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-1-FixedWindowIndexer] PASSED 3252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-1-FixedForwardWindowIndexer] PASSED 3252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-1-ExpandingIndexer] PASSED 3252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-2-FixedWindowIndexer] PASSED 3253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-2-FixedForwardWindowIndexer] PASSED 3253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-2-ExpandingIndexer] PASSED 3253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-12-FixedWindowIndexer] PASSED 3253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-12-FixedForwardWindowIndexer] PASSED 3253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data0-12-ExpandingIndexer] PASSED 3253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-1-FixedWindowIndexer] PASSED 3253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-1-FixedForwardWindowIndexer] PASSED 3254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-1-ExpandingIndexer] PASSED 3254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-2-FixedWindowIndexer] PASSED 3254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-2-FixedForwardWindowIndexer] PASSED 3255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-2-ExpandingIndexer] PASSED 3255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-12-FixedWindowIndexer] PASSED 3255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-12-FixedForwardWindowIndexer] PASSED 3255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data1-12-ExpandingIndexer] PASSED 3255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-1-FixedWindowIndexer] PASSED 3256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-1-FixedForwardWindowIndexer] PASSED 3256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-1-ExpandingIndexer] PASSED 3256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-2-FixedWindowIndexer] PASSED 3257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-2-FixedForwardWindowIndexer] PASSED 3257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-2-ExpandingIndexer] PASSED 3257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-12-FixedWindowIndexer] PASSED 3257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-12-FixedForwardWindowIndexer] PASSED 3257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_indexers_are_reusable_after_groupby_rolling[df_data2-12-ExpandingIndexer] PASSED 3257s ../../../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 3257s ../../../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 3258s ../../../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 3258s ../../../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 3258s ../../../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 3259s ../../../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 3260s ../../../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 3260s ../../../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 3261s ../../../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 3263s ../../../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 3267s ../../../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 3269s ../../../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 3271s ../../../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 3274s ../../../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 3276s ../../../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 3279s ../../../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 3281s ../../../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 3282s ../../../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 3283s ../../../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 3284s ../../../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 3284s ../../../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 3285s ../../../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 3285s ../../../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 3285s ../../../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 3285s ../../../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 3285s ../../../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 3285s ../../../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 3285s ../../../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 3285s ../../../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 3285s ../../../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 3286s ../../../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 3286s ../../../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 3288s ../../../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 3290s ../../../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 3292s ../../../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 3293s ../../../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 3293s ../../../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 3293s ../../../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 3293s ../../../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 3293s ../../../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 3294s ../../../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 3294s ../../../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 3294s ../../../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 3294s ../../../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 3295s ../../../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 3295s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_specific[df0-2-expected0] PASSED 3296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_specific[df1-12-expected1] PASSED 3296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys0] PASSED 3296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys1] PASSED 3297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys2] PASSED 3297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys3] PASSED 3297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys4] PASSED 3298s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys5] PASSED 3298s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys6] PASSED 3298s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys7] PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[1-group_keys8] PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys0] PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys1] PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys2] PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys3] PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys4] PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys5] PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys6] PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys7] PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[2-group_keys8] PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys0] PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys1] PASSED 3299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys2] PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys3] PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys4] PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys5] PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys6] PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys7] PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[3-group_keys8] PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys0] PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys1] PASSED 3300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys2] PASSED 3301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys3] PASSED 3301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys4] PASSED 3301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys5] PASSED 3301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys6] PASSED 3301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys7] PASSED 3301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[4-group_keys8] PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys0] PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys1] PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys2] PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys3] PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys4] PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys5] PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys6] PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys7] PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[5-group_keys8] PASSED 3302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys0] PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys1] PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys2] PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys3] PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys4] PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys5] PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys6] PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys7] PASSED 3303s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[8-group_keys8] PASSED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys0] PASSED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys1] PASSED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys2] PASSED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys3] PASSED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys4] PASSED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys5] PASSED 3304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys6] PASSED 3305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys7] PASSED 3305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_rolling_groupby_with_fixed_forward_many[20-group_keys8] PASSED 3305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_unequal_start_end_bounds PASSED 3305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_base_indexer.py::test_unequal_bounds_to_object PASSED 3305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_sum] PASSED 3305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_mean] PASSED 3305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_var(0)] PASSED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_var(1)] PASSED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_skew] PASSED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_kurt] PASSED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_median_c] PASSED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_max] PASSED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_min] PASSED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.0001,linear)] PASSED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.0001,lower)] PASSED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.0001,higher)] PASSED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.0001,nearest)] PASSED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.0001,midpoint)] PASSED 3306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.5,linear)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.5,lower)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.5,higher)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.5,nearest)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.5,midpoint)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.9999,linear)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.9999,lower)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.9999,higher)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.9999,nearest)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_quantile(0.9999,midpoint)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(True,average,True)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(True,average,False)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(True,min,True)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(True,min,False)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(True,max,True)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(True,max,False)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(False,average,True)] PASSED 3307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(False,average,False)] PASSED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(False,min,True)] PASSED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(False,min,False)] PASSED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(False,max,True)] PASSED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_boundary_consistency[roll_rank(False,max,False)] PASSED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_sum] PASSED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_mean] PASSED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_var(0)] PASSED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_var(1)] PASSED 3308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_skew] PASSED 3309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_kurt] PASSED 3309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_median_c] PASSED 3309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_max] PASSED 3309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_min] PASSED 3310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.0001,linear)] PASSED 3310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.0001,lower)] PASSED 3310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.0001,higher)] PASSED 3310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.0001,nearest)] PASSED 3310s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.0001,midpoint)] PASSED 3311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.5,linear)] PASSED 3311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.5,lower)] PASSED 3311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.5,higher)] PASSED 3311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.5,nearest)] PASSED 3311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.5,midpoint)] PASSED 3311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.9999,linear)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.9999,lower)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.9999,higher)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.9999,nearest)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_quantile(0.9999,midpoint)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(True,average,True)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(True,average,False)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(True,min,True)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(True,min,False)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(True,max,True)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(True,max,False)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(False,average,True)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(False,average,False)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(False,min,True)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(False,min,False)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(False,max,True)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_cython_aggregations.py::test_rolling_aggregation_with_unused_elements[roll_rank(False,max,False)] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-count-data0-expected_data0-True-0] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-count-data1-expected_data1-True-0] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-count-data2-expected_data2-False-0] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-max-data3-expected_data3-True-None] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-max-data4-expected_data4-True-None] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-max-data5-expected_data5-False-None] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-min-data6-expected_data6-True-None] PASSED 3312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-min-data7-expected_data7-True-None] PASSED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-min-data8-expected_data8-False-None] PASSED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-sum-data9-expected_data9-True-None] PASSED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-sum-data10-expected_data10-True-None] PASSED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-sum-data11-expected_data11-False-None] PASSED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-mean-data12-expected_data12-True-None] PASSED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-mean-data13-expected_data13-True-None] PASSED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-mean-data14-expected_data14-False-None] PASSED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-std-data15-expected_data15-True-None] PASSED 3313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-std-data16-expected_data16-True-None] PASSED 3314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-std-data17-expected_data17-False-None] PASSED 3314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-var-data18-expected_data18-True-None] PASSED 3314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-var-data19-expected_data19-True-None] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-var-data20-expected_data20-False-None] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-median-data21-expected_data21-True-None] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-median-data22-expected_data22-True-None] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-None-median-data23-expected_data23-False-None] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-count-data0-expected_data0-True-0] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-count-data1-expected_data1-True-0] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-count-data2-expected_data2-False-0] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-max-data3-expected_data3-True-None] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-max-data4-expected_data4-True-None] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-max-data5-expected_data5-False-None] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-min-data6-expected_data6-True-None] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-min-data7-expected_data7-True-None] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-min-data8-expected_data8-False-None] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-sum-data9-expected_data9-True-None] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-sum-data10-expected_data10-True-None] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-sum-data11-expected_data11-False-None] PASSED 3315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-mean-data12-expected_data12-True-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-mean-data13-expected_data13-True-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-mean-data14-expected_data14-False-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-std-data15-expected_data15-True-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-std-data16-expected_data16-True-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-std-data17-expected_data17-False-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-var-data18-expected_data18-True-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-var-data19-expected_data19-True-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-var-data20-expected_data20-False-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-median-data21-expected_data21-True-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-median-data22-expected_data22-True-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-1-median-data23-expected_data23-False-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-count-data0-expected_data0-True-0] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-count-data1-expected_data1-True-0] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-count-data2-expected_data2-False-0] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-max-data3-expected_data3-True-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-max-data4-expected_data4-True-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-max-data5-expected_data5-False-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-min-data6-expected_data6-True-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-min-data7-expected_data7-True-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-min-data8-expected_data8-False-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-sum-data9-expected_data9-True-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-sum-data10-expected_data10-True-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-sum-data11-expected_data11-False-None] PASSED 3316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-mean-data12-expected_data12-True-None] PASSED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-mean-data13-expected_data13-True-None] PASSED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-mean-data14-expected_data14-False-None] PASSED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-std-data15-expected_data15-True-None] PASSED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-std-data16-expected_data16-True-None] PASSED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-std-data17-expected_data17-False-None] PASSED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-var-data18-expected_data18-True-None] PASSED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-var-data19-expected_data19-True-None] PASSED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-var-data20-expected_data20-False-None] PASSED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-median-data21-expected_data21-True-None] PASSED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-median-data22-expected_data22-True-None] PASSED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-2-median-data23-expected_data23-False-None] PASSED 3317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-count-data0-expected_data0-True-0] PASSED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-count-data1-expected_data1-True-0] PASSED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-count-data2-expected_data2-False-0] PASSED 3318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-max-data3-expected_data3-True-None] PASSED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-max-data4-expected_data4-True-None] PASSED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-max-data5-expected_data5-False-None] PASSED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-min-data6-expected_data6-True-None] PASSED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-min-data7-expected_data7-True-None] PASSED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-min-data8-expected_data8-False-None] PASSED 3319s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-sum-data9-expected_data9-True-None] PASSED 3320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-sum-data10-expected_data10-True-None] PASSED 3320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-sum-data11-expected_data11-False-None] PASSED 3320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-mean-data12-expected_data12-True-None] PASSED 3320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-mean-data13-expected_data13-True-None] PASSED 3320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-mean-data14-expected_data14-False-None] PASSED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-std-data15-expected_data15-True-None] PASSED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-std-data16-expected_data16-True-None] PASSED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-std-data17-expected_data17-False-None] PASSED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-var-data18-expected_data18-True-None] PASSED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-var-data19-expected_data19-True-None] PASSED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-var-data20-expected_data20-False-None] PASSED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-median-data21-expected_data21-True-None] PASSED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-median-data22-expected_data22-True-None] PASSED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-5-median-data23-expected_data23-False-None] PASSED 3321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-count-data0-expected_data0-True-0] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-count-data1-expected_data1-True-0] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-count-data2-expected_data2-False-0] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-max-data3-expected_data3-True-None] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-max-data4-expected_data4-True-None] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-max-data5-expected_data5-False-None] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-min-data6-expected_data6-True-None] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-min-data7-expected_data7-True-None] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-min-data8-expected_data8-False-None] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-sum-data9-expected_data9-True-None] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-sum-data10-expected_data10-True-None] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-sum-data11-expected_data11-False-None] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-mean-data12-expected_data12-True-None] PASSED 3322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-mean-data13-expected_data13-True-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-mean-data14-expected_data14-False-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-std-data15-expected_data15-True-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-std-data16-expected_data16-True-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-std-data17-expected_data17-False-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-var-data18-expected_data18-True-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-var-data19-expected_data19-True-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-var-data20-expected_data20-False-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-median-data21-expected_data21-True-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-median-data22-expected_data22-True-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[object-10-median-data23-expected_data23-False-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-count-data0-expected_data0-True-0] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-count-data1-expected_data1-True-0] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-count-data2-expected_data2-False-0] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-max-data3-expected_data3-True-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-max-data4-expected_data4-True-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-max-data5-expected_data5-False-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-min-data6-expected_data6-True-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-min-data7-expected_data7-True-None] PASSED 3323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-min-data8-expected_data8-False-None] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-sum-data9-expected_data9-True-None] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-sum-data10-expected_data10-True-None] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-sum-data11-expected_data11-False-None] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-mean-data12-expected_data12-True-None] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-mean-data13-expected_data13-True-None] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-mean-data14-expected_data14-False-None] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-std-data15-expected_data15-True-None] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-std-data16-expected_data16-True-None] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-std-data17-expected_data17-False-None] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-var-data18-expected_data18-True-None] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-var-data19-expected_data19-True-None] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-var-data20-expected_data20-False-None] PASSED 3324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-median-data21-expected_data21-True-None] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-median-data22-expected_data22-True-None] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-None-median-data23-expected_data23-False-None] PASSED 3325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-count-data0-expected_data0-True-0] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-count-data1-expected_data1-True-0] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-count-data2-expected_data2-False-0] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-max-data3-expected_data3-True-None] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-max-data4-expected_data4-True-None] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-max-data5-expected_data5-False-None] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-min-data6-expected_data6-True-None] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-min-data7-expected_data7-True-None] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-min-data8-expected_data8-False-None] PASSED 3326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-sum-data9-expected_data9-True-None] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-sum-data10-expected_data10-True-None] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-sum-data11-expected_data11-False-None] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-mean-data12-expected_data12-True-None] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-mean-data13-expected_data13-True-None] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-mean-data14-expected_data14-False-None] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-std-data15-expected_data15-True-None] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-std-data16-expected_data16-True-None] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-std-data17-expected_data17-False-None] PASSED 3327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-var-data18-expected_data18-True-None] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-var-data19-expected_data19-True-None] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-var-data20-expected_data20-False-None] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-median-data21-expected_data21-True-None] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-median-data22-expected_data22-True-None] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-1-median-data23-expected_data23-False-None] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-count-data0-expected_data0-True-0] PASSED 3328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-count-data1-expected_data1-True-0] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-count-data2-expected_data2-False-0] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-max-data3-expected_data3-True-None] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-max-data4-expected_data4-True-None] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-max-data5-expected_data5-False-None] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-min-data6-expected_data6-True-None] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-min-data7-expected_data7-True-None] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-min-data8-expected_data8-False-None] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-sum-data9-expected_data9-True-None] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-sum-data10-expected_data10-True-None] PASSED 3329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-sum-data11-expected_data11-False-None] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-mean-data12-expected_data12-True-None] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-mean-data13-expected_data13-True-None] PASSED 3330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-mean-data14-expected_data14-False-None] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-std-data15-expected_data15-True-None] PASSED 3331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-std-data16-expected_data16-True-None] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-std-data17-expected_data17-False-None] PASSED 3332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-var-data18-expected_data18-True-None] PASSED 3334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-var-data19-expected_data19-True-None] PASSED 3336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-var-data20-expected_data20-False-None] PASSED 3337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-median-data21-expected_data21-True-None] PASSED 3339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-median-data22-expected_data22-True-None] PASSED 3341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-2-median-data23-expected_data23-False-None] PASSED 3343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-count-data0-expected_data0-True-0] PASSED 3344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-count-data1-expected_data1-True-0] PASSED 3345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-count-data2-expected_data2-False-0] PASSED 3345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-max-data3-expected_data3-True-None] PASSED 3345s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-max-data4-expected_data4-True-None] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-max-data5-expected_data5-False-None] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-min-data6-expected_data6-True-None] PASSED 3346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-min-data7-expected_data7-True-None] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-min-data8-expected_data8-False-None] PASSED 3347s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-sum-data9-expected_data9-True-None] PASSED 3348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-sum-data10-expected_data10-True-None] PASSED 3350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-sum-data11-expected_data11-False-None] PASSED 3351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-mean-data12-expected_data12-True-None] PASSED 3353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-mean-data13-expected_data13-True-None] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-mean-data14-expected_data14-False-None] PASSED 3355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-std-data15-expected_data15-True-None] PASSED 3356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-std-data16-expected_data16-True-None] PASSED 3357s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-std-data17-expected_data17-False-None] PASSED 3358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-var-data18-expected_data18-True-None] PASSED 3359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-var-data19-expected_data19-True-None] PASSED 3359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-var-data20-expected_data20-False-None] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-median-data21-expected_data21-True-None] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-median-data22-expected_data22-True-None] PASSED 3360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-5-median-data23-expected_data23-False-None] PASSED 3361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-count-data0-expected_data0-True-0] PASSED 3361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-count-data1-expected_data1-True-0] PASSED 3361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-count-data2-expected_data2-False-0] PASSED 3361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-max-data3-expected_data3-True-None] PASSED 3361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-max-data4-expected_data4-True-None] PASSED 3361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-max-data5-expected_data5-False-None] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-min-data6-expected_data6-True-None] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-min-data7-expected_data7-True-None] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-min-data8-expected_data8-False-None] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-sum-data9-expected_data9-True-None] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-sum-data10-expected_data10-True-None] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-sum-data11-expected_data11-False-None] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-mean-data12-expected_data12-True-None] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-mean-data13-expected_data13-True-None] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-mean-data14-expected_data14-False-None] PASSED 3362s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-std-data15-expected_data15-True-None] PASSED 3363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-std-data16-expected_data16-True-None] PASSED 3363s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-std-data17-expected_data17-False-None] PASSED 3364s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-var-data18-expected_data18-True-None] PASSED 3365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-var-data19-expected_data19-True-None] PASSED 3367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-var-data20-expected_data20-False-None] PASSED 3368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-median-data21-expected_data21-True-None] PASSED 3370s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-median-data22-expected_data22-True-None] PASSED 3371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[category-10-median-data23-expected_data23-False-None] PASSED 3371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-count-data0-expected_data0-True-0] PASSED 3371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-count-data1-expected_data1-True-0] PASSED 3372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-count-data2-expected_data2-False-0] PASSED 3372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-max-data3-expected_data3-True-None] PASSED 3372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-max-data4-expected_data4-True-None] PASSED 3372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-max-data5-expected_data5-False-None] PASSED 3372s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-min-data6-expected_data6-True-None] PASSED 3373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-min-data7-expected_data7-True-None] PASSED 3373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-min-data8-expected_data8-False-None] PASSED 3373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-sum-data9-expected_data9-True-None] PASSED 3373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-sum-data10-expected_data10-True-None] PASSED 3373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-sum-data11-expected_data11-False-None] PASSED 3373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-mean-data12-expected_data12-True-None] PASSED 3373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-mean-data13-expected_data13-True-None] PASSED 3373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-mean-data14-expected_data14-False-None] PASSED 3373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-std-data15-expected_data15-True-None] PASSED 3373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-std-data16-expected_data16-True-None] PASSED 3373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-std-data17-expected_data17-False-None] PASSED 3373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-var-data18-expected_data18-True-None] PASSED 3373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-var-data19-expected_data19-True-None] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-var-data20-expected_data20-False-None] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-median-data21-expected_data21-True-None] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-median-data22-expected_data22-True-None] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-None-median-data23-expected_data23-False-None] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-count-data0-expected_data0-True-0] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-count-data1-expected_data1-True-0] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-count-data2-expected_data2-False-0] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-max-data3-expected_data3-True-None] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-max-data4-expected_data4-True-None] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-max-data5-expected_data5-False-None] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-min-data6-expected_data6-True-None] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-min-data7-expected_data7-True-None] PASSED 3374s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-min-data8-expected_data8-False-None] PASSED 3375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-sum-data9-expected_data9-True-None] PASSED 3375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-sum-data10-expected_data10-True-None] PASSED 3375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-sum-data11-expected_data11-False-None] PASSED 3375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-mean-data12-expected_data12-True-None] PASSED 3375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-mean-data13-expected_data13-True-None] PASSED 3375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-mean-data14-expected_data14-False-None] PASSED 3375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-std-data15-expected_data15-True-None] PASSED 3375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-std-data16-expected_data16-True-None] PASSED 3375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-std-data17-expected_data17-False-None] PASSED 3375s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-var-data18-expected_data18-True-None] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-var-data19-expected_data19-True-None] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-var-data20-expected_data20-False-None] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-median-data21-expected_data21-True-None] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-median-data22-expected_data22-True-None] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-1-median-data23-expected_data23-False-None] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-count-data0-expected_data0-True-0] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-count-data1-expected_data1-True-0] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-count-data2-expected_data2-False-0] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-max-data3-expected_data3-True-None] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-max-data4-expected_data4-True-None] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-max-data5-expected_data5-False-None] PASSED 3376s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-min-data6-expected_data6-True-None] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-min-data7-expected_data7-True-None] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-min-data8-expected_data8-False-None] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-sum-data9-expected_data9-True-None] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-sum-data10-expected_data10-True-None] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-sum-data11-expected_data11-False-None] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-mean-data12-expected_data12-True-None] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-mean-data13-expected_data13-True-None] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-mean-data14-expected_data14-False-None] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-std-data15-expected_data15-True-None] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-std-data16-expected_data16-True-None] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-std-data17-expected_data17-False-None] PASSED 3377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-var-data18-expected_data18-True-None] PASSED 3378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-var-data19-expected_data19-True-None] PASSED 3378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-var-data20-expected_data20-False-None] PASSED 3378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-median-data21-expected_data21-True-None] PASSED 3378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-median-data22-expected_data22-True-None] PASSED 3378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-2-median-data23-expected_data23-False-None] PASSED 3378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-count-data0-expected_data0-True-0] PASSED 3378s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-count-data1-expected_data1-True-0] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-count-data2-expected_data2-False-0] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-max-data3-expected_data3-True-None] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-max-data4-expected_data4-True-None] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-max-data5-expected_data5-False-None] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-min-data6-expected_data6-True-None] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-min-data7-expected_data7-True-None] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-min-data8-expected_data8-False-None] PASSED 3379s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-sum-data9-expected_data9-True-None] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-sum-data10-expected_data10-True-None] PASSED 3380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-sum-data11-expected_data11-False-None] PASSED 3381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-mean-data12-expected_data12-True-None] PASSED 3381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-mean-data13-expected_data13-True-None] PASSED 3382s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-mean-data14-expected_data14-False-None] PASSED 3383s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-std-data15-expected_data15-True-None] PASSED 3384s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-std-data16-expected_data16-True-None] PASSED 3384s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-std-data17-expected_data17-False-None] PASSED 3384s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-var-data18-expected_data18-True-None] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-var-data19-expected_data19-True-None] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-var-data20-expected_data20-False-None] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-median-data21-expected_data21-True-None] PASSED 3385s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-median-data22-expected_data22-True-None] PASSED 3386s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-5-median-data23-expected_data23-False-None] PASSED 3388s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-count-data0-expected_data0-True-0] PASSED 3390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-count-data1-expected_data1-True-0] PASSED 3393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-count-data2-expected_data2-False-0] PASSED 3396s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-max-data3-expected_data3-True-None] PASSED 3399s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-max-data4-expected_data4-True-None] PASSED 3402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-max-data5-expected_data5-False-None] PASSED 3406s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-min-data6-expected_data6-True-None] PASSED 3408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-min-data7-expected_data7-True-None] PASSED 3410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-min-data8-expected_data8-False-None] PASSED 3412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-sum-data9-expected_data9-True-None] PASSED 3413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-sum-data10-expected_data10-True-None] PASSED 3415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-sum-data11-expected_data11-False-None] PASSED 3415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-mean-data12-expected_data12-True-None] PASSED 3416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-mean-data13-expected_data13-True-None] PASSED 3416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-mean-data14-expected_data14-False-None] PASSED 3417s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-std-data15-expected_data15-True-None] PASSED 3417s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-std-data16-expected_data16-True-None] PASSED 3418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-std-data17-expected_data17-False-None] PASSED 3418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-var-data18-expected_data18-True-None] PASSED 3419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-var-data19-expected_data19-True-None] PASSED 3419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-var-data20-expected_data20-False-None] PASSED 3419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-median-data21-expected_data21-True-None] PASSED 3419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-median-data22-expected_data22-True-None] PASSED 3419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int8-10-median-data23-expected_data23-False-None] PASSED 3419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-count-data0-expected_data0-True-0] PASSED 3419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-count-data1-expected_data1-True-0] PASSED 3419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-count-data2-expected_data2-False-0] PASSED 3419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-max-data3-expected_data3-True-None] PASSED 3419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-max-data4-expected_data4-True-None] PASSED 3419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-max-data5-expected_data5-False-None] PASSED 3420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-min-data6-expected_data6-True-None] PASSED 3420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-min-data7-expected_data7-True-None] PASSED 3420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-min-data8-expected_data8-False-None] PASSED 3420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-sum-data9-expected_data9-True-None] PASSED 3420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-sum-data10-expected_data10-True-None] PASSED 3420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-sum-data11-expected_data11-False-None] PASSED 3421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-mean-data12-expected_data12-True-None] PASSED 3422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-mean-data13-expected_data13-True-None] PASSED 3423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-mean-data14-expected_data14-False-None] PASSED 3423s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-std-data15-expected_data15-True-None] PASSED 3424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-std-data16-expected_data16-True-None] PASSED 3424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-std-data17-expected_data17-False-None] PASSED 3424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-var-data18-expected_data18-True-None] PASSED 3424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-var-data19-expected_data19-True-None] PASSED 3425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-var-data20-expected_data20-False-None] PASSED 3425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-median-data21-expected_data21-True-None] PASSED 3425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-median-data22-expected_data22-True-None] PASSED 3425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-None-median-data23-expected_data23-False-None] PASSED 3425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-count-data0-expected_data0-True-0] PASSED 3425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-count-data1-expected_data1-True-0] PASSED 3425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-count-data2-expected_data2-False-0] PASSED 3426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-max-data3-expected_data3-True-None] PASSED 3426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-max-data4-expected_data4-True-None] PASSED 3427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-max-data5-expected_data5-False-None] PASSED 3427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-min-data6-expected_data6-True-None] PASSED 3427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-min-data7-expected_data7-True-None] PASSED 3427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-min-data8-expected_data8-False-None] PASSED 3427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-sum-data9-expected_data9-True-None] PASSED 3427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-sum-data10-expected_data10-True-None] PASSED 3427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-sum-data11-expected_data11-False-None] PASSED 3427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-mean-data12-expected_data12-True-None] PASSED 3428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-mean-data13-expected_data13-True-None] PASSED 3428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-mean-data14-expected_data14-False-None] PASSED 3428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-std-data15-expected_data15-True-None] PASSED 3428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-std-data16-expected_data16-True-None] PASSED 3428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-std-data17-expected_data17-False-None] PASSED 3428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-var-data18-expected_data18-True-None] PASSED 3428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-var-data19-expected_data19-True-None] PASSED 3428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-var-data20-expected_data20-False-None] PASSED 3428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-median-data21-expected_data21-True-None] PASSED 3428s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-median-data22-expected_data22-True-None] PASSED 3429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-1-median-data23-expected_data23-False-None] PASSED 3429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-count-data0-expected_data0-True-0] PASSED 3430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-count-data1-expected_data1-True-0] PASSED 3430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-count-data2-expected_data2-False-0] PASSED 3430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-max-data3-expected_data3-True-None] PASSED 3430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-max-data4-expected_data4-True-None] PASSED 3430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-max-data5-expected_data5-False-None] PASSED 3430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-min-data6-expected_data6-True-None] PASSED 3430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-min-data7-expected_data7-True-None] PASSED 3430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-min-data8-expected_data8-False-None] PASSED 3430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-sum-data9-expected_data9-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-sum-data10-expected_data10-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-sum-data11-expected_data11-False-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-mean-data12-expected_data12-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-mean-data13-expected_data13-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-mean-data14-expected_data14-False-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-std-data15-expected_data15-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-std-data16-expected_data16-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-std-data17-expected_data17-False-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-var-data18-expected_data18-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-var-data19-expected_data19-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-var-data20-expected_data20-False-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-median-data21-expected_data21-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-median-data22-expected_data22-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-2-median-data23-expected_data23-False-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-count-data0-expected_data0-True-0] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-count-data1-expected_data1-True-0] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-count-data2-expected_data2-False-0] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-max-data3-expected_data3-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-max-data4-expected_data4-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-max-data5-expected_data5-False-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-min-data6-expected_data6-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-min-data7-expected_data7-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-min-data8-expected_data8-False-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-sum-data9-expected_data9-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-sum-data10-expected_data10-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-sum-data11-expected_data11-False-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-mean-data12-expected_data12-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-mean-data13-expected_data13-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-mean-data14-expected_data14-False-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-std-data15-expected_data15-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-std-data16-expected_data16-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-std-data17-expected_data17-False-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-var-data18-expected_data18-True-None] PASSED 3432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-var-data19-expected_data19-True-None] PASSED 3433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-var-data20-expected_data20-False-None] PASSED 3433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-median-data21-expected_data21-True-None] PASSED 3433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-median-data22-expected_data22-True-None] PASSED 3433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-5-median-data23-expected_data23-False-None] PASSED 3433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-count-data0-expected_data0-True-0] PASSED 3433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-count-data1-expected_data1-True-0] PASSED 3434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-count-data2-expected_data2-False-0] PASSED 3434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-max-data3-expected_data3-True-None] PASSED 3434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-max-data4-expected_data4-True-None] PASSED 3434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-max-data5-expected_data5-False-None] PASSED 3434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-min-data6-expected_data6-True-None] PASSED 3434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-min-data7-expected_data7-True-None] PASSED 3434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-min-data8-expected_data8-False-None] PASSED 3435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-sum-data9-expected_data9-True-None] PASSED 3435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-sum-data10-expected_data10-True-None] PASSED 3436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-sum-data11-expected_data11-False-None] PASSED 3437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-mean-data12-expected_data12-True-None] PASSED 3437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-mean-data13-expected_data13-True-None] PASSED 3438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-mean-data14-expected_data14-False-None] PASSED 3438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-std-data15-expected_data15-True-None] PASSED 3439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-std-data16-expected_data16-True-None] PASSED 3441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-std-data17-expected_data17-False-None] PASSED 3441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-var-data18-expected_data18-True-None] PASSED 3441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-var-data19-expected_data19-True-None] PASSED 3442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-var-data20-expected_data20-False-None] PASSED 3442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-median-data21-expected_data21-True-None] PASSED 3443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-median-data22-expected_data22-True-None] PASSED 3443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int16-10-median-data23-expected_data23-False-None] PASSED 3443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-count-data0-expected_data0-True-0] PASSED 3443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-count-data1-expected_data1-True-0] PASSED 3443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-count-data2-expected_data2-False-0] PASSED 3444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-max-data3-expected_data3-True-None] PASSED 3444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-max-data4-expected_data4-True-None] PASSED 3444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-max-data5-expected_data5-False-None] PASSED 3444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-min-data6-expected_data6-True-None] PASSED 3445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-min-data7-expected_data7-True-None] PASSED 3445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-min-data8-expected_data8-False-None] PASSED 3445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-sum-data9-expected_data9-True-None] PASSED 3446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-sum-data10-expected_data10-True-None] PASSED 3446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-sum-data11-expected_data11-False-None] PASSED 3446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-mean-data12-expected_data12-True-None] PASSED 3446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-mean-data13-expected_data13-True-None] PASSED 3446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-mean-data14-expected_data14-False-None] PASSED 3446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-std-data15-expected_data15-True-None] PASSED 3446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-std-data16-expected_data16-True-None] PASSED 3447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-std-data17-expected_data17-False-None] PASSED 3447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-var-data18-expected_data18-True-None] PASSED 3447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-var-data19-expected_data19-True-None] PASSED 3447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-var-data20-expected_data20-False-None] PASSED 3447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-median-data21-expected_data21-True-None] PASSED 3448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-median-data22-expected_data22-True-None] PASSED 3448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-None-median-data23-expected_data23-False-None] PASSED 3448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-count-data0-expected_data0-True-0] PASSED 3448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-count-data1-expected_data1-True-0] PASSED 3448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-count-data2-expected_data2-False-0] PASSED 3448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-max-data3-expected_data3-True-None] PASSED 3448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-max-data4-expected_data4-True-None] PASSED 3449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-max-data5-expected_data5-False-None] PASSED 3449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-min-data6-expected_data6-True-None] PASSED 3449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-min-data7-expected_data7-True-None] PASSED 3449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-min-data8-expected_data8-False-None] PASSED 3449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-sum-data9-expected_data9-True-None] PASSED 3449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-sum-data10-expected_data10-True-None] PASSED 3450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-sum-data11-expected_data11-False-None] PASSED 3450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-mean-data12-expected_data12-True-None] PASSED 3450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-mean-data13-expected_data13-True-None] PASSED 3450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-mean-data14-expected_data14-False-None] PASSED 3450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-std-data15-expected_data15-True-None] PASSED 3450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-std-data16-expected_data16-True-None] PASSED 3450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-std-data17-expected_data17-False-None] PASSED 3450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-var-data18-expected_data18-True-None] PASSED 3450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-var-data19-expected_data19-True-None] PASSED 3450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-var-data20-expected_data20-False-None] PASSED 3450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-median-data21-expected_data21-True-None] PASSED 3450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-median-data22-expected_data22-True-None] PASSED 3451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-1-median-data23-expected_data23-False-None] PASSED 3451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-count-data0-expected_data0-True-0] PASSED 3451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-count-data1-expected_data1-True-0] PASSED 3451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-count-data2-expected_data2-False-0] PASSED 3451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-max-data3-expected_data3-True-None] PASSED 3451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-max-data4-expected_data4-True-None] PASSED 3451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-max-data5-expected_data5-False-None] PASSED 3452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-min-data6-expected_data6-True-None] PASSED 3452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-min-data7-expected_data7-True-None] PASSED 3452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-min-data8-expected_data8-False-None] PASSED 3452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-sum-data9-expected_data9-True-None] PASSED 3452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-sum-data10-expected_data10-True-None] PASSED 3452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-sum-data11-expected_data11-False-None] PASSED 3453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-mean-data12-expected_data12-True-None] PASSED 3453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-mean-data13-expected_data13-True-None] PASSED 3453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-mean-data14-expected_data14-False-None] PASSED 3453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-std-data15-expected_data15-True-None] PASSED 3453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-std-data16-expected_data16-True-None] PASSED 3453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-std-data17-expected_data17-False-None] PASSED 3453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-var-data18-expected_data18-True-None] PASSED 3453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-var-data19-expected_data19-True-None] PASSED 3453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-var-data20-expected_data20-False-None] PASSED 3453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-median-data21-expected_data21-True-None] PASSED 3453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-median-data22-expected_data22-True-None] PASSED 3454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-2-median-data23-expected_data23-False-None] PASSED 3454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-count-data0-expected_data0-True-0] PASSED 3454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-count-data1-expected_data1-True-0] PASSED 3454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-count-data2-expected_data2-False-0] PASSED 3455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-max-data3-expected_data3-True-None] PASSED 3455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-max-data4-expected_data4-True-None] PASSED 3455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-max-data5-expected_data5-False-None] PASSED 3455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-min-data6-expected_data6-True-None] PASSED 3455s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-min-data7-expected_data7-True-None] PASSED 3456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-min-data8-expected_data8-False-None] PASSED 3456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-sum-data9-expected_data9-True-None] PASSED 3456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-sum-data10-expected_data10-True-None] PASSED 3456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-sum-data11-expected_data11-False-None] PASSED 3456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-mean-data12-expected_data12-True-None] PASSED 3456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-mean-data13-expected_data13-True-None] PASSED 3456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-mean-data14-expected_data14-False-None] PASSED 3456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-std-data15-expected_data15-True-None] PASSED 3456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-std-data16-expected_data16-True-None] PASSED 3456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-std-data17-expected_data17-False-None] PASSED 3457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-var-data18-expected_data18-True-None] PASSED 3457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-var-data19-expected_data19-True-None] PASSED 3457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-var-data20-expected_data20-False-None] PASSED 3457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-median-data21-expected_data21-True-None] PASSED 3457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-median-data22-expected_data22-True-None] PASSED 3457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-5-median-data23-expected_data23-False-None] PASSED 3457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-count-data0-expected_data0-True-0] PASSED 3458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-count-data1-expected_data1-True-0] PASSED 3458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-count-data2-expected_data2-False-0] PASSED 3458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-max-data3-expected_data3-True-None] PASSED 3458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-max-data4-expected_data4-True-None] PASSED 3459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-max-data5-expected_data5-False-None] PASSED 3459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-min-data6-expected_data6-True-None] PASSED 3459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-min-data7-expected_data7-True-None] PASSED 3459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-min-data8-expected_data8-False-None] PASSED 3459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-sum-data9-expected_data9-True-None] PASSED 3459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-sum-data10-expected_data10-True-None] PASSED 3460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-sum-data11-expected_data11-False-None] PASSED 3460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-mean-data12-expected_data12-True-None] PASSED 3460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-mean-data13-expected_data13-True-None] PASSED 3460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-mean-data14-expected_data14-False-None] PASSED 3460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-std-data15-expected_data15-True-None] PASSED 3460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-std-data16-expected_data16-True-None] PASSED 3460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-std-data17-expected_data17-False-None] PASSED 3460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-var-data18-expected_data18-True-None] PASSED 3460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-var-data19-expected_data19-True-None] PASSED 3460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-var-data20-expected_data20-False-None] PASSED 3461s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-median-data21-expected_data21-True-None] PASSED 3461s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-median-data22-expected_data22-True-None] PASSED 3461s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int32-10-median-data23-expected_data23-False-None] PASSED 3461s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-count-data0-expected_data0-True-0] PASSED 3461s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-count-data1-expected_data1-True-0] PASSED 3461s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-count-data2-expected_data2-False-0] PASSED 3462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-max-data3-expected_data3-True-None] PASSED 3462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-max-data4-expected_data4-True-None] PASSED 3462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-max-data5-expected_data5-False-None] PASSED 3462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-min-data6-expected_data6-True-None] PASSED 3463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-min-data7-expected_data7-True-None] PASSED 3463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-min-data8-expected_data8-False-None] PASSED 3463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-sum-data9-expected_data9-True-None] PASSED 3464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-sum-data10-expected_data10-True-None] PASSED 3464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-sum-data11-expected_data11-False-None] PASSED 3464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-mean-data12-expected_data12-True-None] PASSED 3464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-mean-data13-expected_data13-True-None] PASSED 3464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-mean-data14-expected_data14-False-None] PASSED 3464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-std-data15-expected_data15-True-None] PASSED 3464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-std-data16-expected_data16-True-None] PASSED 3464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-std-data17-expected_data17-False-None] PASSED 3465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-var-data18-expected_data18-True-None] PASSED 3465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-var-data19-expected_data19-True-None] PASSED 3465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-var-data20-expected_data20-False-None] PASSED 3465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-median-data21-expected_data21-True-None] PASSED 3465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-median-data22-expected_data22-True-None] PASSED 3465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-None-median-data23-expected_data23-False-None] PASSED 3465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-count-data0-expected_data0-True-0] PASSED 3465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-count-data1-expected_data1-True-0] PASSED 3465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-count-data2-expected_data2-False-0] PASSED 3465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-max-data3-expected_data3-True-None] PASSED 3465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-max-data4-expected_data4-True-None] PASSED 3466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-max-data5-expected_data5-False-None] PASSED 3466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-min-data6-expected_data6-True-None] PASSED 3467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-min-data7-expected_data7-True-None] PASSED 3467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-min-data8-expected_data8-False-None] PASSED 3467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-sum-data9-expected_data9-True-None] PASSED 3467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-sum-data10-expected_data10-True-None] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-sum-data11-expected_data11-False-None] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-mean-data12-expected_data12-True-None] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-mean-data13-expected_data13-True-None] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-mean-data14-expected_data14-False-None] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-std-data15-expected_data15-True-None] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-std-data16-expected_data16-True-None] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-std-data17-expected_data17-False-None] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-var-data18-expected_data18-True-None] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-var-data19-expected_data19-True-None] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-var-data20-expected_data20-False-None] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-median-data21-expected_data21-True-None] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-median-data22-expected_data22-True-None] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-1-median-data23-expected_data23-False-None] PASSED 3468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-count-data0-expected_data0-True-0] PASSED 3469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-count-data1-expected_data1-True-0] PASSED 3469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-count-data2-expected_data2-False-0] PASSED 3469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-max-data3-expected_data3-True-None] PASSED 3469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-max-data4-expected_data4-True-None] PASSED 3469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-max-data5-expected_data5-False-None] PASSED 3469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-min-data6-expected_data6-True-None] PASSED 3469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-min-data7-expected_data7-True-None] PASSED 3469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-min-data8-expected_data8-False-None] PASSED 3469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-sum-data9-expected_data9-True-None] PASSED 3469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-sum-data10-expected_data10-True-None] PASSED 3470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-sum-data11-expected_data11-False-None] PASSED 3470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-mean-data12-expected_data12-True-None] PASSED 3470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-mean-data13-expected_data13-True-None] PASSED 3470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-mean-data14-expected_data14-False-None] PASSED 3471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-std-data15-expected_data15-True-None] PASSED 3471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-std-data16-expected_data16-True-None] PASSED 3471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-std-data17-expected_data17-False-None] PASSED 3471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-var-data18-expected_data18-True-None] PASSED 3471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-var-data19-expected_data19-True-None] PASSED 3471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-var-data20-expected_data20-False-None] PASSED 3471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-median-data21-expected_data21-True-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-median-data22-expected_data22-True-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-2-median-data23-expected_data23-False-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-count-data0-expected_data0-True-0] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-count-data1-expected_data1-True-0] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-count-data2-expected_data2-False-0] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-max-data3-expected_data3-True-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-max-data4-expected_data4-True-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-max-data5-expected_data5-False-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-min-data6-expected_data6-True-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-min-data7-expected_data7-True-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-min-data8-expected_data8-False-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-sum-data9-expected_data9-True-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-sum-data10-expected_data10-True-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-sum-data11-expected_data11-False-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-mean-data12-expected_data12-True-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-mean-data13-expected_data13-True-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-mean-data14-expected_data14-False-None] PASSED 3472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-std-data15-expected_data15-True-None] PASSED 3473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-std-data16-expected_data16-True-None] PASSED 3473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-std-data17-expected_data17-False-None] PASSED 3473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-var-data18-expected_data18-True-None] PASSED 3473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-var-data19-expected_data19-True-None] PASSED 3473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-var-data20-expected_data20-False-None] PASSED 3473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-median-data21-expected_data21-True-None] PASSED 3473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-median-data22-expected_data22-True-None] PASSED 3473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-5-median-data23-expected_data23-False-None] PASSED 3473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-count-data0-expected_data0-True-0] PASSED 3474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-count-data1-expected_data1-True-0] PASSED 3474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-count-data2-expected_data2-False-0] PASSED 3474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-max-data3-expected_data3-True-None] PASSED 3474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-max-data4-expected_data4-True-None] PASSED 3474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-max-data5-expected_data5-False-None] PASSED 3474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-min-data6-expected_data6-True-None] PASSED 3474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-min-data7-expected_data7-True-None] PASSED 3475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-min-data8-expected_data8-False-None] PASSED 3475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-sum-data9-expected_data9-True-None] PASSED 3475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-sum-data10-expected_data10-True-None] PASSED 3475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-sum-data11-expected_data11-False-None] PASSED 3475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-mean-data12-expected_data12-True-None] PASSED 3475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-mean-data13-expected_data13-True-None] PASSED 3475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-mean-data14-expected_data14-False-None] PASSED 3475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-std-data15-expected_data15-True-None] PASSED 3475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-std-data16-expected_data16-True-None] PASSED 3475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-std-data17-expected_data17-False-None] PASSED 3475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-var-data18-expected_data18-True-None] PASSED 3475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-var-data19-expected_data19-True-None] PASSED 3476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-var-data20-expected_data20-False-None] PASSED 3478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-median-data21-expected_data21-True-None] PASSED 3480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-median-data22-expected_data22-True-None] PASSED 3483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[int64-10-median-data23-expected_data23-False-None] PASSED 3486s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-count-data0-expected_data0-True-0] PASSED 3488s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-count-data1-expected_data1-True-0] PASSED 3490s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-count-data2-expected_data2-False-0] PASSED 3491s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-max-data3-expected_data3-True-None] PASSED 3492s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-max-data4-expected_data4-True-None] PASSED 3493s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-max-data5-expected_data5-False-None] PASSED 3493s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-min-data6-expected_data6-True-None] PASSED 3494s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-min-data7-expected_data7-True-None] PASSED 3494s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-min-data8-expected_data8-False-None] PASSED 3496s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-sum-data9-expected_data9-True-None] PASSED 3497s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-sum-data10-expected_data10-True-None] PASSED 3498s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-sum-data11-expected_data11-False-None] PASSED 3499s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-mean-data12-expected_data12-True-None] PASSED 3499s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-mean-data13-expected_data13-True-None] PASSED 3499s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-mean-data14-expected_data14-False-None] PASSED 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-std-data15-expected_data15-True-None] PASSED 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-std-data16-expected_data16-True-None] PASSED 3500s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-std-data17-expected_data17-False-None] PASSED 3501s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-var-data18-expected_data18-True-None] PASSED 3501s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-var-data19-expected_data19-True-None] PASSED 3501s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-var-data20-expected_data20-False-None] PASSED 3501s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-median-data21-expected_data21-True-None] PASSED 3501s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-median-data22-expected_data22-True-None] PASSED 3501s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-None-median-data23-expected_data23-False-None] PASSED 3501s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-count-data0-expected_data0-True-0] PASSED 3502s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-count-data1-expected_data1-True-0] PASSED 3502s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-count-data2-expected_data2-False-0] PASSED 3502s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-max-data3-expected_data3-True-None] PASSED 3503s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-max-data4-expected_data4-True-None] PASSED 3503s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-max-data5-expected_data5-False-None] PASSED 3503s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-min-data6-expected_data6-True-None] PASSED 3503s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-min-data7-expected_data7-True-None] PASSED 3503s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-min-data8-expected_data8-False-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-sum-data9-expected_data9-True-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-sum-data10-expected_data10-True-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-sum-data11-expected_data11-False-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-mean-data12-expected_data12-True-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-mean-data13-expected_data13-True-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-mean-data14-expected_data14-False-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-std-data15-expected_data15-True-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-std-data16-expected_data16-True-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-std-data17-expected_data17-False-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-var-data18-expected_data18-True-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-var-data19-expected_data19-True-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-var-data20-expected_data20-False-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-median-data21-expected_data21-True-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-median-data22-expected_data22-True-None] PASSED 3504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-1-median-data23-expected_data23-False-None] PASSED 3505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-count-data0-expected_data0-True-0] PASSED 3505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-count-data1-expected_data1-True-0] PASSED 3505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-count-data2-expected_data2-False-0] PASSED 3505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-max-data3-expected_data3-True-None] PASSED 3505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-max-data4-expected_data4-True-None] PASSED 3506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-max-data5-expected_data5-False-None] PASSED 3506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-min-data6-expected_data6-True-None] PASSED 3506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-min-data7-expected_data7-True-None] PASSED 3507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-min-data8-expected_data8-False-None] PASSED 3507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-sum-data9-expected_data9-True-None] PASSED 3507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-sum-data10-expected_data10-True-None] PASSED 3508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-sum-data11-expected_data11-False-None] PASSED 3510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-mean-data12-expected_data12-True-None] PASSED 3511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-mean-data13-expected_data13-True-None] PASSED 3513s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-mean-data14-expected_data14-False-None] PASSED 3513s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-std-data15-expected_data15-True-None] PASSED 3514s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-std-data16-expected_data16-True-None] PASSED 3514s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-std-data17-expected_data17-False-None] PASSED 3514s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-var-data18-expected_data18-True-None] PASSED 3515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-var-data19-expected_data19-True-None] PASSED 3515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-var-data20-expected_data20-False-None] PASSED 3515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-median-data21-expected_data21-True-None] PASSED 3515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-median-data22-expected_data22-True-None] PASSED 3515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-2-median-data23-expected_data23-False-None] PASSED 3515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-count-data0-expected_data0-True-0] PASSED 3515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-count-data1-expected_data1-True-0] PASSED 3515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-count-data2-expected_data2-False-0] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-max-data3-expected_data3-True-None] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-max-data4-expected_data4-True-None] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-max-data5-expected_data5-False-None] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-min-data6-expected_data6-True-None] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-min-data7-expected_data7-True-None] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-min-data8-expected_data8-False-None] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-sum-data9-expected_data9-True-None] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-sum-data10-expected_data10-True-None] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-sum-data11-expected_data11-False-None] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-mean-data12-expected_data12-True-None] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-mean-data13-expected_data13-True-None] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-mean-data14-expected_data14-False-None] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-std-data15-expected_data15-True-None] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-std-data16-expected_data16-True-None] PASSED 3516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-std-data17-expected_data17-False-None] PASSED 3517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-var-data18-expected_data18-True-None] PASSED 3517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-var-data19-expected_data19-True-None] PASSED 3517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-var-data20-expected_data20-False-None] PASSED 3517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-median-data21-expected_data21-True-None] PASSED 3517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-median-data22-expected_data22-True-None] PASSED 3517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-5-median-data23-expected_data23-False-None] PASSED 3517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-count-data0-expected_data0-True-0] PASSED 3517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-count-data1-expected_data1-True-0] PASSED 3517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-count-data2-expected_data2-False-0] PASSED 3517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-max-data3-expected_data3-True-None] PASSED 3518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-max-data4-expected_data4-True-None] PASSED 3518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-max-data5-expected_data5-False-None] PASSED 3518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-min-data6-expected_data6-True-None] PASSED 3518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-min-data7-expected_data7-True-None] PASSED 3518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-min-data8-expected_data8-False-None] PASSED 3519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-sum-data9-expected_data9-True-None] PASSED 3519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-sum-data10-expected_data10-True-None] PASSED 3519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-sum-data11-expected_data11-False-None] PASSED 3519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-mean-data12-expected_data12-True-None] PASSED 3519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-mean-data13-expected_data13-True-None] PASSED 3519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-mean-data14-expected_data14-False-None] PASSED 3519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-std-data15-expected_data15-True-None] PASSED 3519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-std-data16-expected_data16-True-None] PASSED 3520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-std-data17-expected_data17-False-None] PASSED 3520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-var-data18-expected_data18-True-None] PASSED 3520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-var-data19-expected_data19-True-None] PASSED 3520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-var-data20-expected_data20-False-None] PASSED 3520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-median-data21-expected_data21-True-None] PASSED 3520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-median-data22-expected_data22-True-None] PASSED 3520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint8-10-median-data23-expected_data23-False-None] PASSED 3520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-count-data0-expected_data0-True-0] PASSED 3520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-count-data1-expected_data1-True-0] PASSED 3520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-count-data2-expected_data2-False-0] PASSED 3520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-max-data3-expected_data3-True-None] PASSED 3521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-max-data4-expected_data4-True-None] PASSED 3521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-max-data5-expected_data5-False-None] PASSED 3521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-min-data6-expected_data6-True-None] PASSED 3521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-min-data7-expected_data7-True-None] PASSED 3521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-min-data8-expected_data8-False-None] PASSED 3521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-sum-data9-expected_data9-True-None] PASSED 3521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-sum-data10-expected_data10-True-None] PASSED 3521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-sum-data11-expected_data11-False-None] PASSED 3521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-mean-data12-expected_data12-True-None] PASSED 3521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-mean-data13-expected_data13-True-None] PASSED 3521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-mean-data14-expected_data14-False-None] PASSED 3522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-std-data15-expected_data15-True-None] PASSED 3522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-std-data16-expected_data16-True-None] PASSED 3522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-std-data17-expected_data17-False-None] PASSED 3522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-var-data18-expected_data18-True-None] PASSED 3522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-var-data19-expected_data19-True-None] PASSED 3522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-var-data20-expected_data20-False-None] PASSED 3522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-median-data21-expected_data21-True-None] PASSED 3522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-median-data22-expected_data22-True-None] PASSED 3522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-None-median-data23-expected_data23-False-None] PASSED 3522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-count-data0-expected_data0-True-0] PASSED 3522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-count-data1-expected_data1-True-0] PASSED 3522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-count-data2-expected_data2-False-0] PASSED 3522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-max-data3-expected_data3-True-None] PASSED 3522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-max-data4-expected_data4-True-None] PASSED 3523s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-max-data5-expected_data5-False-None] PASSED 3523s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-min-data6-expected_data6-True-None] PASSED 3523s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-min-data7-expected_data7-True-None] PASSED 3523s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-min-data8-expected_data8-False-None] PASSED 3524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-sum-data9-expected_data9-True-None] PASSED 3524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-sum-data10-expected_data10-True-None] PASSED 3524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-sum-data11-expected_data11-False-None] PASSED 3524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-mean-data12-expected_data12-True-None] PASSED 3524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-mean-data13-expected_data13-True-None] PASSED 3524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-mean-data14-expected_data14-False-None] PASSED 3525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-std-data15-expected_data15-True-None] PASSED 3527s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-std-data16-expected_data16-True-None] PASSED 3528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-std-data17-expected_data17-False-None] PASSED 3529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-var-data18-expected_data18-True-None] PASSED 3530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-var-data19-expected_data19-True-None] PASSED 3531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-var-data20-expected_data20-False-None] PASSED 3531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-median-data21-expected_data21-True-None] PASSED 3531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-median-data22-expected_data22-True-None] PASSED 3531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-1-median-data23-expected_data23-False-None] PASSED 3531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-count-data0-expected_data0-True-0] PASSED 3531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-count-data1-expected_data1-True-0] PASSED 3531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-count-data2-expected_data2-False-0] PASSED 3532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-max-data3-expected_data3-True-None] PASSED 3532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-max-data4-expected_data4-True-None] PASSED 3532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-max-data5-expected_data5-False-None] PASSED 3532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-min-data6-expected_data6-True-None] PASSED 3532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-min-data7-expected_data7-True-None] PASSED 3533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-min-data8-expected_data8-False-None] PASSED 3533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-sum-data9-expected_data9-True-None] PASSED 3533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-sum-data10-expected_data10-True-None] PASSED 3533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-sum-data11-expected_data11-False-None] PASSED 3533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-mean-data12-expected_data12-True-None] PASSED 3533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-mean-data13-expected_data13-True-None] PASSED 3533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-mean-data14-expected_data14-False-None] PASSED 3533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-std-data15-expected_data15-True-None] PASSED 3533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-std-data16-expected_data16-True-None] PASSED 3533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-std-data17-expected_data17-False-None] PASSED 3533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-var-data18-expected_data18-True-None] PASSED 3533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-var-data19-expected_data19-True-None] PASSED 3533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-var-data20-expected_data20-False-None] PASSED 3534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-median-data21-expected_data21-True-None] PASSED 3534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-median-data22-expected_data22-True-None] PASSED 3534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-2-median-data23-expected_data23-False-None] PASSED 3534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-count-data0-expected_data0-True-0] PASSED 3534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-count-data1-expected_data1-True-0] PASSED 3534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-count-data2-expected_data2-False-0] PASSED 3534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-max-data3-expected_data3-True-None] PASSED 3534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-max-data4-expected_data4-True-None] PASSED 3534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-max-data5-expected_data5-False-None] PASSED 3534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-min-data6-expected_data6-True-None] PASSED 3534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-min-data7-expected_data7-True-None] PASSED 3534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-min-data8-expected_data8-False-None] PASSED 3534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-sum-data9-expected_data9-True-None] PASSED 3534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-sum-data10-expected_data10-True-None] PASSED 3535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-sum-data11-expected_data11-False-None] PASSED 3535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-mean-data12-expected_data12-True-None] PASSED 3535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-mean-data13-expected_data13-True-None] PASSED 3535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-mean-data14-expected_data14-False-None] PASSED 3535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-std-data15-expected_data15-True-None] PASSED 3535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-std-data16-expected_data16-True-None] PASSED 3535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-std-data17-expected_data17-False-None] PASSED 3535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-var-data18-expected_data18-True-None] PASSED 3535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-var-data19-expected_data19-True-None] PASSED 3535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-var-data20-expected_data20-False-None] PASSED 3535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-median-data21-expected_data21-True-None] PASSED 3535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-median-data22-expected_data22-True-None] PASSED 3536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-5-median-data23-expected_data23-False-None] PASSED 3536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-count-data0-expected_data0-True-0] PASSED 3536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-count-data1-expected_data1-True-0] PASSED 3536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-count-data2-expected_data2-False-0] PASSED 3536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-max-data3-expected_data3-True-None] PASSED 3536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-max-data4-expected_data4-True-None] PASSED 3536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-max-data5-expected_data5-False-None] PASSED 3536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-min-data6-expected_data6-True-None] PASSED 3536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-min-data7-expected_data7-True-None] PASSED 3536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-min-data8-expected_data8-False-None] PASSED 3537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-sum-data9-expected_data9-True-None] PASSED 3537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-sum-data10-expected_data10-True-None] PASSED 3537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-sum-data11-expected_data11-False-None] PASSED 3537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-mean-data12-expected_data12-True-None] PASSED 3537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-mean-data13-expected_data13-True-None] PASSED 3537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-mean-data14-expected_data14-False-None] PASSED 3537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-std-data15-expected_data15-True-None] PASSED 3537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-std-data16-expected_data16-True-None] PASSED 3537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-std-data17-expected_data17-False-None] PASSED 3537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-var-data18-expected_data18-True-None] PASSED 3537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-var-data19-expected_data19-True-None] PASSED 3537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-var-data20-expected_data20-False-None] PASSED 3538s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-median-data21-expected_data21-True-None] PASSED 3538s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-median-data22-expected_data22-True-None] PASSED 3538s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint16-10-median-data23-expected_data23-False-None] PASSED 3538s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-count-data0-expected_data0-True-0] PASSED 3538s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-count-data1-expected_data1-True-0] PASSED 3538s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-count-data2-expected_data2-False-0] PASSED 3539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-max-data3-expected_data3-True-None] PASSED 3539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-max-data4-expected_data4-True-None] PASSED 3539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-max-data5-expected_data5-False-None] PASSED 3539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-min-data6-expected_data6-True-None] PASSED 3539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-min-data7-expected_data7-True-None] PASSED 3539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-min-data8-expected_data8-False-None] PASSED 3540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-sum-data9-expected_data9-True-None] PASSED 3540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-sum-data10-expected_data10-True-None] PASSED 3540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-sum-data11-expected_data11-False-None] PASSED 3540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-mean-data12-expected_data12-True-None] PASSED 3540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-mean-data13-expected_data13-True-None] PASSED 3541s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-mean-data14-expected_data14-False-None] PASSED 3541s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-std-data15-expected_data15-True-None] PASSED 3541s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-std-data16-expected_data16-True-None] PASSED 3542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-std-data17-expected_data17-False-None] PASSED 3542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-var-data18-expected_data18-True-None] PASSED 3543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-var-data19-expected_data19-True-None] PASSED 3544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-var-data20-expected_data20-False-None] PASSED 3544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-median-data21-expected_data21-True-None] PASSED 3544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-median-data22-expected_data22-True-None] PASSED 3544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-None-median-data23-expected_data23-False-None] PASSED 3544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-count-data0-expected_data0-True-0] PASSED 3544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-count-data1-expected_data1-True-0] PASSED 3545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-count-data2-expected_data2-False-0] PASSED 3547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-max-data3-expected_data3-True-None] PASSED 3548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-max-data4-expected_data4-True-None] PASSED 3551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-max-data5-expected_data5-False-None] PASSED 3556s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-min-data6-expected_data6-True-None] PASSED 3559s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-min-data7-expected_data7-True-None] PASSED 3561s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-min-data8-expected_data8-False-None] PASSED 3564s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-sum-data9-expected_data9-True-None] PASSED 3567s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-sum-data10-expected_data10-True-None] PASSED 3569s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-sum-data11-expected_data11-False-None] PASSED 3571s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-mean-data12-expected_data12-True-None] PASSED 3573s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-mean-data13-expected_data13-True-None] PASSED 3575s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-mean-data14-expected_data14-False-None] PASSED 3575s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-std-data15-expected_data15-True-None] PASSED 3575s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-std-data16-expected_data16-True-None] PASSED 3575s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-std-data17-expected_data17-False-None] PASSED 3575s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-var-data18-expected_data18-True-None] PASSED 3575s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-var-data19-expected_data19-True-None] PASSED 3575s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-var-data20-expected_data20-False-None] PASSED 3576s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-median-data21-expected_data21-True-None] PASSED 3576s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-median-data22-expected_data22-True-None] PASSED 3576s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-1-median-data23-expected_data23-False-None] PASSED 3576s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-count-data0-expected_data0-True-0] PASSED 3576s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-count-data1-expected_data1-True-0] PASSED 3576s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-count-data2-expected_data2-False-0] PASSED 3576s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-max-data3-expected_data3-True-None] PASSED 3576s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-max-data4-expected_data4-True-None] PASSED 3576s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-max-data5-expected_data5-False-None] PASSED 3576s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-min-data6-expected_data6-True-None] PASSED 3576s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-min-data7-expected_data7-True-None] PASSED 3576s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-min-data8-expected_data8-False-None] PASSED 3576s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-sum-data9-expected_data9-True-None] PASSED 3576s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-sum-data10-expected_data10-True-None] PASSED 3577s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-sum-data11-expected_data11-False-None] PASSED 3577s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-mean-data12-expected_data12-True-None] PASSED 3577s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-mean-data13-expected_data13-True-None] PASSED 3577s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-mean-data14-expected_data14-False-None] PASSED 3577s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-std-data15-expected_data15-True-None] PASSED 3577s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-std-data16-expected_data16-True-None] PASSED 3577s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-std-data17-expected_data17-False-None] PASSED 3577s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-var-data18-expected_data18-True-None] PASSED 3577s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-var-data19-expected_data19-True-None] PASSED 3577s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-var-data20-expected_data20-False-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-median-data21-expected_data21-True-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-median-data22-expected_data22-True-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-2-median-data23-expected_data23-False-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-count-data0-expected_data0-True-0] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-count-data1-expected_data1-True-0] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-count-data2-expected_data2-False-0] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-max-data3-expected_data3-True-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-max-data4-expected_data4-True-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-max-data5-expected_data5-False-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-min-data6-expected_data6-True-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-min-data7-expected_data7-True-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-min-data8-expected_data8-False-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-sum-data9-expected_data9-True-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-sum-data10-expected_data10-True-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-sum-data11-expected_data11-False-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-mean-data12-expected_data12-True-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-mean-data13-expected_data13-True-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-mean-data14-expected_data14-False-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-std-data15-expected_data15-True-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-std-data16-expected_data16-True-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-std-data17-expected_data17-False-None] PASSED 3578s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-var-data18-expected_data18-True-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-var-data19-expected_data19-True-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-var-data20-expected_data20-False-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-median-data21-expected_data21-True-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-median-data22-expected_data22-True-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-5-median-data23-expected_data23-False-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-count-data0-expected_data0-True-0] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-count-data1-expected_data1-True-0] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-count-data2-expected_data2-False-0] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-max-data3-expected_data3-True-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-max-data4-expected_data4-True-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-max-data5-expected_data5-False-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-min-data6-expected_data6-True-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-min-data7-expected_data7-True-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-min-data8-expected_data8-False-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-sum-data9-expected_data9-True-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-sum-data10-expected_data10-True-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-sum-data11-expected_data11-False-None] PASSED 3579s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-mean-data12-expected_data12-True-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-mean-data13-expected_data13-True-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-mean-data14-expected_data14-False-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-std-data15-expected_data15-True-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-std-data16-expected_data16-True-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-std-data17-expected_data17-False-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-var-data18-expected_data18-True-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-var-data19-expected_data19-True-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-var-data20-expected_data20-False-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-median-data21-expected_data21-True-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-median-data22-expected_data22-True-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint32-10-median-data23-expected_data23-False-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-count-data0-expected_data0-True-0] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-count-data1-expected_data1-True-0] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-count-data2-expected_data2-False-0] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-max-data3-expected_data3-True-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-max-data4-expected_data4-True-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-max-data5-expected_data5-False-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-min-data6-expected_data6-True-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-min-data7-expected_data7-True-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-min-data8-expected_data8-False-None] PASSED 3580s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-sum-data9-expected_data9-True-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-sum-data10-expected_data10-True-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-sum-data11-expected_data11-False-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-mean-data12-expected_data12-True-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-mean-data13-expected_data13-True-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-mean-data14-expected_data14-False-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-std-data15-expected_data15-True-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-std-data16-expected_data16-True-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-std-data17-expected_data17-False-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-var-data18-expected_data18-True-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-var-data19-expected_data19-True-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-var-data20-expected_data20-False-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-median-data21-expected_data21-True-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-median-data22-expected_data22-True-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-None-median-data23-expected_data23-False-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-count-data0-expected_data0-True-0] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-count-data1-expected_data1-True-0] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-count-data2-expected_data2-False-0] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-max-data3-expected_data3-True-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-max-data4-expected_data4-True-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-max-data5-expected_data5-False-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-min-data6-expected_data6-True-None] PASSED 3581s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-min-data7-expected_data7-True-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-min-data8-expected_data8-False-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-sum-data9-expected_data9-True-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-sum-data10-expected_data10-True-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-sum-data11-expected_data11-False-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-mean-data12-expected_data12-True-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-mean-data13-expected_data13-True-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-mean-data14-expected_data14-False-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-std-data15-expected_data15-True-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-std-data16-expected_data16-True-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-std-data17-expected_data17-False-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-var-data18-expected_data18-True-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-var-data19-expected_data19-True-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-var-data20-expected_data20-False-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-median-data21-expected_data21-True-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-median-data22-expected_data22-True-None] PASSED 3582s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-1-median-data23-expected_data23-False-None] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-count-data0-expected_data0-True-0] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-count-data1-expected_data1-True-0] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-count-data2-expected_data2-False-0] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-max-data3-expected_data3-True-None] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-max-data4-expected_data4-True-None] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-max-data5-expected_data5-False-None] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-min-data6-expected_data6-True-None] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-min-data7-expected_data7-True-None] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-min-data8-expected_data8-False-None] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-sum-data9-expected_data9-True-None] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-sum-data10-expected_data10-True-None] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-sum-data11-expected_data11-False-None] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-mean-data12-expected_data12-True-None] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-mean-data13-expected_data13-True-None] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-mean-data14-expected_data14-False-None] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-std-data15-expected_data15-True-None] PASSED 3583s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-std-data16-expected_data16-True-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-std-data17-expected_data17-False-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-var-data18-expected_data18-True-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-var-data19-expected_data19-True-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-var-data20-expected_data20-False-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-median-data21-expected_data21-True-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-median-data22-expected_data22-True-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-2-median-data23-expected_data23-False-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-count-data0-expected_data0-True-0] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-count-data1-expected_data1-True-0] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-count-data2-expected_data2-False-0] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-max-data3-expected_data3-True-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-max-data4-expected_data4-True-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-max-data5-expected_data5-False-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-min-data6-expected_data6-True-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-min-data7-expected_data7-True-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-min-data8-expected_data8-False-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-sum-data9-expected_data9-True-None] PASSED 3584s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-sum-data10-expected_data10-True-None] PASSED 3585s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-sum-data11-expected_data11-False-None] PASSED 3585s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-mean-data12-expected_data12-True-None] PASSED 3585s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-mean-data13-expected_data13-True-None] PASSED 3585s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-mean-data14-expected_data14-False-None] PASSED 3585s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-std-data15-expected_data15-True-None] PASSED 3585s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-std-data16-expected_data16-True-None] PASSED 3585s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-std-data17-expected_data17-False-None] PASSED 3586s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-var-data18-expected_data18-True-None] PASSED 3586s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-var-data19-expected_data19-True-None] PASSED 3586s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-var-data20-expected_data20-False-None] PASSED 3586s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-median-data21-expected_data21-True-None] PASSED 3586s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-median-data22-expected_data22-True-None] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-5-median-data23-expected_data23-False-None] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-count-data0-expected_data0-True-0] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-count-data1-expected_data1-True-0] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-count-data2-expected_data2-False-0] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-max-data3-expected_data3-True-None] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-max-data4-expected_data4-True-None] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-max-data5-expected_data5-False-None] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-min-data6-expected_data6-True-None] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-min-data7-expected_data7-True-None] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-min-data8-expected_data8-False-None] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-sum-data9-expected_data9-True-None] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-sum-data10-expected_data10-True-None] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-sum-data11-expected_data11-False-None] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-mean-data12-expected_data12-True-None] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-mean-data13-expected_data13-True-None] PASSED 3587s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-mean-data14-expected_data14-False-None] PASSED 3588s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-std-data15-expected_data15-True-None] PASSED 3588s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-std-data16-expected_data16-True-None] PASSED 3588s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-std-data17-expected_data17-False-None] PASSED 3588s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-var-data18-expected_data18-True-None] PASSED 3588s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-var-data19-expected_data19-True-None] PASSED 3588s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-var-data20-expected_data20-False-None] PASSED 3588s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-median-data21-expected_data21-True-None] PASSED 3588s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-median-data22-expected_data22-True-None] PASSED 3588s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[uint64-10-median-data23-expected_data23-False-None] PASSED 3589s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-count-data0-expected_data0-True-0] PASSED 3589s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-count-data1-expected_data1-True-0] PASSED 3589s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-count-data2-expected_data2-False-0] PASSED 3589s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-max-data3-expected_data3-True-None] PASSED 3589s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-max-data4-expected_data4-True-None] PASSED 3589s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-max-data5-expected_data5-False-None] PASSED 3590s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-min-data6-expected_data6-True-None] PASSED 3590s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-min-data7-expected_data7-True-None] PASSED 3590s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-min-data8-expected_data8-False-None] PASSED 3590s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-sum-data9-expected_data9-True-None] PASSED 3590s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-sum-data10-expected_data10-True-None] PASSED 3590s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-sum-data11-expected_data11-False-None] PASSED 3590s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-mean-data12-expected_data12-True-None] PASSED 3590s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-mean-data13-expected_data13-True-None] PASSED 3590s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-mean-data14-expected_data14-False-None] PASSED 3590s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-std-data15-expected_data15-True-None] PASSED 3590s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-std-data16-expected_data16-True-None] PASSED 3590s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-std-data17-expected_data17-False-None] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-var-data18-expected_data18-True-None] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-var-data19-expected_data19-True-None] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-var-data20-expected_data20-False-None] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-median-data21-expected_data21-True-None] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-median-data22-expected_data22-True-None] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-None-median-data23-expected_data23-False-None] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-count-data0-expected_data0-True-0] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-count-data1-expected_data1-True-0] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-count-data2-expected_data2-False-0] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-max-data3-expected_data3-True-None] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-max-data4-expected_data4-True-None] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-max-data5-expected_data5-False-None] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-min-data6-expected_data6-True-None] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-min-data7-expected_data7-True-None] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-min-data8-expected_data8-False-None] PASSED 3591s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-sum-data9-expected_data9-True-None] PASSED 3592s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-sum-data10-expected_data10-True-None] PASSED 3592s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-sum-data11-expected_data11-False-None] PASSED 3592s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-mean-data12-expected_data12-True-None] PASSED 3592s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-mean-data13-expected_data13-True-None] PASSED 3593s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-mean-data14-expected_data14-False-None] PASSED 3593s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-std-data15-expected_data15-True-None] PASSED 3593s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-std-data16-expected_data16-True-None] PASSED 3594s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-std-data17-expected_data17-False-None] PASSED 3594s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-var-data18-expected_data18-True-None] PASSED 3594s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-var-data19-expected_data19-True-None] PASSED 3595s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-var-data20-expected_data20-False-None] PASSED 3595s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-median-data21-expected_data21-True-None] PASSED 3597s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-median-data22-expected_data22-True-None] PASSED 3597s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-1-median-data23-expected_data23-False-None] PASSED 3598s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-count-data0-expected_data0-True-0] PASSED 3599s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-count-data1-expected_data1-True-0] PASSED 3599s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-count-data2-expected_data2-False-0] PASSED 3599s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-max-data3-expected_data3-True-None] PASSED 3600s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-max-data4-expected_data4-True-None] PASSED 3600s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-max-data5-expected_data5-False-None] PASSED 3600s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-min-data6-expected_data6-True-None] PASSED 3600s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-min-data7-expected_data7-True-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-min-data8-expected_data8-False-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-sum-data9-expected_data9-True-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-sum-data10-expected_data10-True-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-sum-data11-expected_data11-False-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-mean-data12-expected_data12-True-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-mean-data13-expected_data13-True-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-mean-data14-expected_data14-False-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-std-data15-expected_data15-True-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-std-data16-expected_data16-True-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-std-data17-expected_data17-False-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-var-data18-expected_data18-True-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-var-data19-expected_data19-True-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-var-data20-expected_data20-False-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-median-data21-expected_data21-True-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-median-data22-expected_data22-True-None] PASSED 3601s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-2-median-data23-expected_data23-False-None] PASSED 3602s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-count-data0-expected_data0-True-0] PASSED 3602s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-count-data1-expected_data1-True-0] PASSED 3602s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-count-data2-expected_data2-False-0] PASSED 3602s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-max-data3-expected_data3-True-None] PASSED 3602s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-max-data4-expected_data4-True-None] PASSED 3602s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-max-data5-expected_data5-False-None] PASSED 3602s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-min-data6-expected_data6-True-None] PASSED 3602s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-min-data7-expected_data7-True-None] PASSED 3602s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-min-data8-expected_data8-False-None] PASSED 3602s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-sum-data9-expected_data9-True-None] PASSED 3602s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-sum-data10-expected_data10-True-None] PASSED 3603s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-sum-data11-expected_data11-False-None] PASSED 3603s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-mean-data12-expected_data12-True-None] PASSED 3603s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-mean-data13-expected_data13-True-None] PASSED 3603s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-mean-data14-expected_data14-False-None] PASSED 3603s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-std-data15-expected_data15-True-None] PASSED 3603s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-std-data16-expected_data16-True-None] PASSED 3603s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-std-data17-expected_data17-False-None] PASSED 3603s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-var-data18-expected_data18-True-None] PASSED 3604s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-var-data19-expected_data19-True-None] PASSED 3604s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-var-data20-expected_data20-False-None] PASSED 3604s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-median-data21-expected_data21-True-None] PASSED 3604s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-median-data22-expected_data22-True-None] PASSED 3604s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-5-median-data23-expected_data23-False-None] PASSED 3604s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-count-data0-expected_data0-True-0] PASSED 3604s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-count-data1-expected_data1-True-0] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-count-data2-expected_data2-False-0] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-max-data3-expected_data3-True-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-max-data4-expected_data4-True-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-max-data5-expected_data5-False-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-min-data6-expected_data6-True-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-min-data7-expected_data7-True-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-min-data8-expected_data8-False-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-sum-data9-expected_data9-True-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-sum-data10-expected_data10-True-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-sum-data11-expected_data11-False-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-mean-data12-expected_data12-True-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-mean-data13-expected_data13-True-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-mean-data14-expected_data14-False-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-std-data15-expected_data15-True-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-std-data16-expected_data16-True-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-std-data17-expected_data17-False-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-var-data18-expected_data18-True-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-var-data19-expected_data19-True-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-var-data20-expected_data20-False-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-median-data21-expected_data21-True-None] PASSED 3605s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-median-data22-expected_data22-True-None] PASSED 3606s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float16-10-median-data23-expected_data23-False-None] PASSED 3606s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-count-data0-expected_data0-True-0] PASSED 3606s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-count-data1-expected_data1-True-0] PASSED 3606s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-count-data2-expected_data2-False-0] PASSED 3606s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-max-data3-expected_data3-True-None] PASSED 3606s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-max-data4-expected_data4-True-None] PASSED 3606s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-max-data5-expected_data5-False-None] PASSED 3606s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-min-data6-expected_data6-True-None] PASSED 3607s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-min-data7-expected_data7-True-None] PASSED 3607s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-min-data8-expected_data8-False-None] PASSED 3607s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-sum-data9-expected_data9-True-None] PASSED 3608s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-sum-data10-expected_data10-True-None] PASSED 3608s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-sum-data11-expected_data11-False-None] PASSED 3608s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-mean-data12-expected_data12-True-None] PASSED 3608s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-mean-data13-expected_data13-True-None] PASSED 3608s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-mean-data14-expected_data14-False-None] PASSED 3608s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-std-data15-expected_data15-True-None] PASSED 3609s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-std-data16-expected_data16-True-None] PASSED 3609s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-std-data17-expected_data17-False-None] PASSED 3609s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-var-data18-expected_data18-True-None] PASSED 3609s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-var-data19-expected_data19-True-None] PASSED 3609s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-var-data20-expected_data20-False-None] PASSED 3609s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-median-data21-expected_data21-True-None] PASSED 3609s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-median-data22-expected_data22-True-None] PASSED 3609s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-None-median-data23-expected_data23-False-None] PASSED 3609s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-count-data0-expected_data0-True-0] PASSED 3609s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-count-data1-expected_data1-True-0] PASSED 3609s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-count-data2-expected_data2-False-0] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-max-data3-expected_data3-True-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-max-data4-expected_data4-True-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-max-data5-expected_data5-False-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-min-data6-expected_data6-True-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-min-data7-expected_data7-True-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-min-data8-expected_data8-False-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-sum-data9-expected_data9-True-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-sum-data10-expected_data10-True-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-sum-data11-expected_data11-False-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-mean-data12-expected_data12-True-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-mean-data13-expected_data13-True-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-mean-data14-expected_data14-False-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-std-data15-expected_data15-True-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-std-data16-expected_data16-True-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-std-data17-expected_data17-False-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-var-data18-expected_data18-True-None] PASSED 3610s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-var-data19-expected_data19-True-None] PASSED 3611s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-var-data20-expected_data20-False-None] PASSED 3611s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-median-data21-expected_data21-True-None] PASSED 3611s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-median-data22-expected_data22-True-None] PASSED 3611s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-1-median-data23-expected_data23-False-None] PASSED 3611s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-count-data0-expected_data0-True-0] PASSED 3612s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-count-data1-expected_data1-True-0] PASSED 3612s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-count-data2-expected_data2-False-0] PASSED 3612s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-max-data3-expected_data3-True-None] PASSED 3612s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-max-data4-expected_data4-True-None] PASSED 3612s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-max-data5-expected_data5-False-None] PASSED 3612s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-min-data6-expected_data6-True-None] PASSED 3613s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-min-data7-expected_data7-True-None] PASSED 3613s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-min-data8-expected_data8-False-None] PASSED 3613s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-sum-data9-expected_data9-True-None] PASSED 3613s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-sum-data10-expected_data10-True-None] PASSED 3613s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-sum-data11-expected_data11-False-None] PASSED 3613s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-mean-data12-expected_data12-True-None] PASSED 3613s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-mean-data13-expected_data13-True-None] PASSED 3614s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-mean-data14-expected_data14-False-None] PASSED 3614s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-std-data15-expected_data15-True-None] PASSED 3614s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-std-data16-expected_data16-True-None] PASSED 3614s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-std-data17-expected_data17-False-None] PASSED 3614s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-var-data18-expected_data18-True-None] PASSED 3614s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-var-data19-expected_data19-True-None] PASSED 3615s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-var-data20-expected_data20-False-None] PASSED 3615s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-median-data21-expected_data21-True-None] PASSED 3615s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-median-data22-expected_data22-True-None] PASSED 3615s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-2-median-data23-expected_data23-False-None] PASSED 3615s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-count-data0-expected_data0-True-0] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-count-data1-expected_data1-True-0] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-count-data2-expected_data2-False-0] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-max-data3-expected_data3-True-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-max-data4-expected_data4-True-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-max-data5-expected_data5-False-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-min-data6-expected_data6-True-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-min-data7-expected_data7-True-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-min-data8-expected_data8-False-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-sum-data9-expected_data9-True-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-sum-data10-expected_data10-True-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-sum-data11-expected_data11-False-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-mean-data12-expected_data12-True-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-mean-data13-expected_data13-True-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-mean-data14-expected_data14-False-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-std-data15-expected_data15-True-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-std-data16-expected_data16-True-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-std-data17-expected_data17-False-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-var-data18-expected_data18-True-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-var-data19-expected_data19-True-None] PASSED 3616s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-var-data20-expected_data20-False-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-median-data21-expected_data21-True-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-median-data22-expected_data22-True-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-5-median-data23-expected_data23-False-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-count-data0-expected_data0-True-0] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-count-data1-expected_data1-True-0] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-count-data2-expected_data2-False-0] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-max-data3-expected_data3-True-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-max-data4-expected_data4-True-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-max-data5-expected_data5-False-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-min-data6-expected_data6-True-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-min-data7-expected_data7-True-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-min-data8-expected_data8-False-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-sum-data9-expected_data9-True-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-sum-data10-expected_data10-True-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-sum-data11-expected_data11-False-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-mean-data12-expected_data12-True-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-mean-data13-expected_data13-True-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-mean-data14-expected_data14-False-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-std-data15-expected_data15-True-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-std-data16-expected_data16-True-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-std-data17-expected_data17-False-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-var-data18-expected_data18-True-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-var-data19-expected_data19-True-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-var-data20-expected_data20-False-None] PASSED 3617s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-median-data21-expected_data21-True-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-median-data22-expected_data22-True-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float32-10-median-data23-expected_data23-False-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-count-data0-expected_data0-True-0] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-count-data1-expected_data1-True-0] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-count-data2-expected_data2-False-0] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-max-data3-expected_data3-True-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-max-data4-expected_data4-True-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-max-data5-expected_data5-False-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-min-data6-expected_data6-True-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-min-data7-expected_data7-True-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-min-data8-expected_data8-False-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-sum-data9-expected_data9-True-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-sum-data10-expected_data10-True-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-sum-data11-expected_data11-False-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-mean-data12-expected_data12-True-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-mean-data13-expected_data13-True-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-mean-data14-expected_data14-False-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-std-data15-expected_data15-True-None] PASSED 3618s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-std-data16-expected_data16-True-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-std-data17-expected_data17-False-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-var-data18-expected_data18-True-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-var-data19-expected_data19-True-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-var-data20-expected_data20-False-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-median-data21-expected_data21-True-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-median-data22-expected_data22-True-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-None-median-data23-expected_data23-False-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-count-data0-expected_data0-True-0] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-count-data1-expected_data1-True-0] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-count-data2-expected_data2-False-0] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-max-data3-expected_data3-True-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-max-data4-expected_data4-True-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-max-data5-expected_data5-False-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-min-data6-expected_data6-True-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-min-data7-expected_data7-True-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-min-data8-expected_data8-False-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-sum-data9-expected_data9-True-None] PASSED 3619s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-sum-data10-expected_data10-True-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-sum-data11-expected_data11-False-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-mean-data12-expected_data12-True-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-mean-data13-expected_data13-True-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-mean-data14-expected_data14-False-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-std-data15-expected_data15-True-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-std-data16-expected_data16-True-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-std-data17-expected_data17-False-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-var-data18-expected_data18-True-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-var-data19-expected_data19-True-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-var-data20-expected_data20-False-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-median-data21-expected_data21-True-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-median-data22-expected_data22-True-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-1-median-data23-expected_data23-False-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-count-data0-expected_data0-True-0] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-count-data1-expected_data1-True-0] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-count-data2-expected_data2-False-0] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-max-data3-expected_data3-True-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-max-data4-expected_data4-True-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-max-data5-expected_data5-False-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-min-data6-expected_data6-True-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-min-data7-expected_data7-True-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-min-data8-expected_data8-False-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-sum-data9-expected_data9-True-None] PASSED 3620s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-sum-data10-expected_data10-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-sum-data11-expected_data11-False-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-mean-data12-expected_data12-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-mean-data13-expected_data13-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-mean-data14-expected_data14-False-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-std-data15-expected_data15-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-std-data16-expected_data16-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-std-data17-expected_data17-False-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-var-data18-expected_data18-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-var-data19-expected_data19-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-var-data20-expected_data20-False-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-median-data21-expected_data21-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-median-data22-expected_data22-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-2-median-data23-expected_data23-False-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-count-data0-expected_data0-True-0] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-count-data1-expected_data1-True-0] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-count-data2-expected_data2-False-0] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-max-data3-expected_data3-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-max-data4-expected_data4-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-max-data5-expected_data5-False-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-min-data6-expected_data6-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-min-data7-expected_data7-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-min-data8-expected_data8-False-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-sum-data9-expected_data9-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-sum-data10-expected_data10-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-sum-data11-expected_data11-False-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-mean-data12-expected_data12-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-mean-data13-expected_data13-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-mean-data14-expected_data14-False-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-std-data15-expected_data15-True-None] PASSED 3621s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-std-data16-expected_data16-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-std-data17-expected_data17-False-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-var-data18-expected_data18-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-var-data19-expected_data19-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-var-data20-expected_data20-False-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-median-data21-expected_data21-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-median-data22-expected_data22-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-5-median-data23-expected_data23-False-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-count-data0-expected_data0-True-0] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-count-data1-expected_data1-True-0] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-count-data2-expected_data2-False-0] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-max-data3-expected_data3-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-max-data4-expected_data4-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-max-data5-expected_data5-False-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-min-data6-expected_data6-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-min-data7-expected_data7-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-min-data8-expected_data8-False-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-sum-data9-expected_data9-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-sum-data10-expected_data10-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-sum-data11-expected_data11-False-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-mean-data12-expected_data12-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-mean-data13-expected_data13-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-mean-data14-expected_data14-False-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-std-data15-expected_data15-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-std-data16-expected_data16-True-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-std-data17-expected_data17-False-None] PASSED 3622s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-var-data18-expected_data18-True-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-var-data19-expected_data19-True-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-var-data20-expected_data20-False-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-median-data21-expected_data21-True-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-median-data22-expected_data22-True-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[float64-10-median-data23-expected_data23-False-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-count-data0-expected_data0-True-0] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-count-data1-expected_data1-True-0] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-count-data2-expected_data2-False-0] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-max-data3-expected_data3-True-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-max-data4-expected_data4-True-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-max-data5-expected_data5-False-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-min-data6-expected_data6-True-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-min-data7-expected_data7-True-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-min-data8-expected_data8-False-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-sum-data9-expected_data9-True-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-sum-data10-expected_data10-True-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-sum-data11-expected_data11-False-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-mean-data12-expected_data12-True-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-mean-data13-expected_data13-True-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-mean-data14-expected_data14-False-None] PASSED 3623s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-std-data15-expected_data15-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-std-data16-expected_data16-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-std-data17-expected_data17-False-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-var-data18-expected_data18-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-var-data19-expected_data19-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-var-data20-expected_data20-False-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-median-data21-expected_data21-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-median-data22-expected_data22-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-None-median-data23-expected_data23-False-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-count-data0-expected_data0-True-0] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-count-data1-expected_data1-True-0] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-count-data2-expected_data2-False-0] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-max-data3-expected_data3-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-max-data4-expected_data4-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-max-data5-expected_data5-False-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-min-data6-expected_data6-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-min-data7-expected_data7-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-min-data8-expected_data8-False-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-sum-data9-expected_data9-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-sum-data10-expected_data10-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-sum-data11-expected_data11-False-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-mean-data12-expected_data12-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-mean-data13-expected_data13-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-mean-data14-expected_data14-False-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-std-data15-expected_data15-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-std-data16-expected_data16-True-None] PASSED 3624s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-std-data17-expected_data17-False-None] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-var-data18-expected_data18-True-None] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-var-data19-expected_data19-True-None] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-var-data20-expected_data20-False-None] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-median-data21-expected_data21-True-None] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-median-data22-expected_data22-True-None] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-1-median-data23-expected_data23-False-None] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-count-data0-expected_data0-True-0] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-count-data1-expected_data1-True-0] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-count-data2-expected_data2-False-0] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-max-data3-expected_data3-True-None] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-max-data4-expected_data4-True-None] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-max-data5-expected_data5-False-None] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-min-data6-expected_data6-True-None] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-min-data7-expected_data7-True-None] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-min-data8-expected_data8-False-None] PASSED 3625s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-sum-data9-expected_data9-True-None] PASSED 3626s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-sum-data10-expected_data10-True-None] PASSED 3626s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-sum-data11-expected_data11-False-None] PASSED 3626s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-mean-data12-expected_data12-True-None] PASSED 3626s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-mean-data13-expected_data13-True-None] PASSED 3626s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-mean-data14-expected_data14-False-None] PASSED 3626s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-std-data15-expected_data15-True-None] PASSED 3626s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-std-data16-expected_data16-True-None] PASSED 3626s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-std-data17-expected_data17-False-None] PASSED 3626s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-var-data18-expected_data18-True-None] PASSED 3626s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-var-data19-expected_data19-True-None] PASSED 3626s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-var-data20-expected_data20-False-None] PASSED 3626s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-median-data21-expected_data21-True-None] PASSED 3626s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-median-data22-expected_data22-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-2-median-data23-expected_data23-False-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-count-data0-expected_data0-True-0] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-count-data1-expected_data1-True-0] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-count-data2-expected_data2-False-0] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-max-data3-expected_data3-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-max-data4-expected_data4-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-max-data5-expected_data5-False-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-min-data6-expected_data6-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-min-data7-expected_data7-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-min-data8-expected_data8-False-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-sum-data9-expected_data9-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-sum-data10-expected_data10-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-sum-data11-expected_data11-False-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-mean-data12-expected_data12-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-mean-data13-expected_data13-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-mean-data14-expected_data14-False-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-std-data15-expected_data15-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-std-data16-expected_data16-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-std-data17-expected_data17-False-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-var-data18-expected_data18-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-var-data19-expected_data19-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-var-data20-expected_data20-False-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-median-data21-expected_data21-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-median-data22-expected_data22-True-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-5-median-data23-expected_data23-False-None] PASSED 3627s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-count-data0-expected_data0-True-0] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-count-data1-expected_data1-True-0] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-count-data2-expected_data2-False-0] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-max-data3-expected_data3-True-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-max-data4-expected_data4-True-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-max-data5-expected_data5-False-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-min-data6-expected_data6-True-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-min-data7-expected_data7-True-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-min-data8-expected_data8-False-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-sum-data9-expected_data9-True-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-sum-data10-expected_data10-True-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-sum-data11-expected_data11-False-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-mean-data12-expected_data12-True-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-mean-data13-expected_data13-True-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-mean-data14-expected_data14-False-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-std-data15-expected_data15-True-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-std-data16-expected_data16-True-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-std-data17-expected_data17-False-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-var-data18-expected_data18-True-None] PASSED 3628s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-var-data19-expected_data19-True-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-var-data20-expected_data20-False-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-median-data21-expected_data21-True-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-median-data22-expected_data22-True-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[m8[ns]-10-median-data23-expected_data23-False-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-count-data0-expected_data0-True-0] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-count-data1-expected_data1-True-0] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-count-data2-expected_data2-False-0] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-max-data3-expected_data3-True-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-max-data4-expected_data4-True-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-max-data5-expected_data5-False-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-min-data6-expected_data6-True-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-min-data7-expected_data7-True-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-min-data8-expected_data8-False-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-sum-data9-expected_data9-True-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-sum-data10-expected_data10-True-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-sum-data11-expected_data11-False-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-mean-data12-expected_data12-True-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-mean-data13-expected_data13-True-None] PASSED 3629s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-mean-data14-expected_data14-False-None] PASSED 3630s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-std-data15-expected_data15-True-None] PASSED 3630s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-std-data16-expected_data16-True-None] PASSED 3630s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-std-data17-expected_data17-False-None] PASSED 3630s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-var-data18-expected_data18-True-None] PASSED 3630s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-var-data19-expected_data19-True-None] PASSED 3630s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-var-data20-expected_data20-False-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-median-data21-expected_data21-True-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-median-data22-expected_data22-True-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-None-median-data23-expected_data23-False-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-count-data0-expected_data0-True-0] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-count-data1-expected_data1-True-0] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-count-data2-expected_data2-False-0] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-max-data3-expected_data3-True-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-max-data4-expected_data4-True-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-max-data5-expected_data5-False-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-min-data6-expected_data6-True-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-min-data7-expected_data7-True-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-min-data8-expected_data8-False-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-sum-data9-expected_data9-True-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-sum-data10-expected_data10-True-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-sum-data11-expected_data11-False-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-mean-data12-expected_data12-True-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-mean-data13-expected_data13-True-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-mean-data14-expected_data14-False-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-std-data15-expected_data15-True-None] PASSED 3631s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-std-data16-expected_data16-True-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-std-data17-expected_data17-False-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-var-data18-expected_data18-True-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-var-data19-expected_data19-True-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-var-data20-expected_data20-False-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-median-data21-expected_data21-True-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-median-data22-expected_data22-True-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-1-median-data23-expected_data23-False-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-count-data0-expected_data0-True-0] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-count-data1-expected_data1-True-0] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-count-data2-expected_data2-False-0] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-max-data3-expected_data3-True-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-max-data4-expected_data4-True-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-max-data5-expected_data5-False-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-min-data6-expected_data6-True-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-min-data7-expected_data7-True-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-min-data8-expected_data8-False-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-sum-data9-expected_data9-True-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-sum-data10-expected_data10-True-None] PASSED 3632s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-sum-data11-expected_data11-False-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-mean-data12-expected_data12-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-mean-data13-expected_data13-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-mean-data14-expected_data14-False-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-std-data15-expected_data15-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-std-data16-expected_data16-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-std-data17-expected_data17-False-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-var-data18-expected_data18-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-var-data19-expected_data19-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-var-data20-expected_data20-False-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-median-data21-expected_data21-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-median-data22-expected_data22-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-2-median-data23-expected_data23-False-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-count-data0-expected_data0-True-0] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-count-data1-expected_data1-True-0] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-count-data2-expected_data2-False-0] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-max-data3-expected_data3-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-max-data4-expected_data4-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-max-data5-expected_data5-False-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-min-data6-expected_data6-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-min-data7-expected_data7-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-min-data8-expected_data8-False-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-sum-data9-expected_data9-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-sum-data10-expected_data10-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-sum-data11-expected_data11-False-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-mean-data12-expected_data12-True-None] PASSED 3633s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-mean-data13-expected_data13-True-None] PASSED 3634s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-mean-data14-expected_data14-False-None] PASSED 3634s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-std-data15-expected_data15-True-None] PASSED 3634s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-std-data16-expected_data16-True-None] PASSED 3634s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-std-data17-expected_data17-False-None] PASSED 3634s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-var-data18-expected_data18-True-None] PASSED 3634s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-var-data19-expected_data19-True-None] PASSED 3634s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-var-data20-expected_data20-False-None] PASSED 3634s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-median-data21-expected_data21-True-None] PASSED 3634s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-median-data22-expected_data22-True-None] PASSED 3634s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-5-median-data23-expected_data23-False-None] PASSED 3634s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-count-data0-expected_data0-True-0] PASSED 3634s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-count-data1-expected_data1-True-0] PASSED 3635s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-count-data2-expected_data2-False-0] PASSED 3635s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-max-data3-expected_data3-True-None] PASSED 3635s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-max-data4-expected_data4-True-None] PASSED 3635s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-max-data5-expected_data5-False-None] PASSED 3635s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-min-data6-expected_data6-True-None] PASSED 3635s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-min-data7-expected_data7-True-None] PASSED 3635s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-min-data8-expected_data8-False-None] PASSED 3635s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-sum-data9-expected_data9-True-None] PASSED 3636s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-sum-data10-expected_data10-True-None] PASSED 3636s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-sum-data11-expected_data11-False-None] PASSED 3636s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-mean-data12-expected_data12-True-None] PASSED 3636s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-mean-data13-expected_data13-True-None] PASSED 3636s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-mean-data14-expected_data14-False-None] PASSED 3636s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-std-data15-expected_data15-True-None] PASSED 3636s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-std-data16-expected_data16-True-None] PASSED 3636s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-std-data17-expected_data17-False-None] PASSED 3636s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-var-data18-expected_data18-True-None] PASSED 3636s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-var-data19-expected_data19-True-None] PASSED 3636s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-var-data20-expected_data20-False-None] PASSED 3636s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-median-data21-expected_data21-True-None] PASSED 3636s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-median-data22-expected_data22-True-None] PASSED 3636s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_dtypes[M8[ns]-10-median-data23-expected_data23-False-None] PASSED 3636s ../../../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 3636s ../../../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 3636s ../../../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 3636s ../../../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 3636s ../../../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 3636s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3637s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3638s ../../../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 3639s ../../../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 3639s ../../../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 3639s ../../../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 3639s ../../../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 3639s ../../../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 3639s ../../../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 3639s ../../../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 3639s ../../../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 3639s ../../../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 3639s ../../../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 3639s ../../../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 3639s ../../../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 3639s ../../../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 3639s ../../../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 3639s ../../../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 3639s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3640s ../../../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 3641s ../../../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 3641s ../../../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 3641s ../../../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 3641s ../../../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 3641s ../../../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 3641s ../../../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 3641s ../../../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 3641s ../../../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 3641s ../../../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 3641s ../../../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 3641s ../../../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 3641s ../../../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 3641s ../../../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 3641s ../../../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 3641s ../../../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 3641s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../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 3642s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int8-None] PASSED 3642s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int8-1] PASSED 3642s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int8-2] PASSED 3642s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int8-5] PASSED 3642s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int8-10] PASSED 3642s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int16-None] PASSED 3642s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int16-1] PASSED 3642s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int16-2] PASSED 3642s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int16-5] PASSED 3642s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int16-10] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int32-None] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int32-1] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int32-2] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int32-5] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int32-10] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int64-None] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int64-1] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int64-2] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int64-5] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_series_nullable_int[Int64-10] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-count-expected_data0-0] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-max-expected_data1-None] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-min-expected_data2-None] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-sum-expected_data3-None] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-mean-expected_data4-None] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-std-expected_data5-None] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-var-expected_data6-None] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-None-median-expected_data7-None] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-count-expected_data0-0] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-max-expected_data1-None] PASSED 3643s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-min-expected_data2-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-sum-expected_data3-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-mean-expected_data4-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-std-expected_data5-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-var-expected_data6-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-1-median-expected_data7-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-count-expected_data0-0] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-max-expected_data1-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-min-expected_data2-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-sum-expected_data3-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-mean-expected_data4-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-std-expected_data5-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-var-expected_data6-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-2-median-expected_data7-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-count-expected_data0-0] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-max-expected_data1-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-min-expected_data2-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-sum-expected_data3-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-mean-expected_data4-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-std-expected_data5-None] PASSED 3644s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-var-expected_data6-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-5-median-expected_data7-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-count-expected_data0-0] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-max-expected_data1-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-min-expected_data2-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-sum-expected_data3-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-mean-expected_data4-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-std-expected_data5-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-var-expected_data6-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[object-10-median-expected_data7-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-count-expected_data0-0] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-max-expected_data1-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-min-expected_data2-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-sum-expected_data3-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-mean-expected_data4-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-std-expected_data5-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-var-expected_data6-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-None-median-expected_data7-None] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-count-expected_data0-0] PASSED 3645s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-max-expected_data1-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-min-expected_data2-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-sum-expected_data3-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-mean-expected_data4-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-std-expected_data5-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-var-expected_data6-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-1-median-expected_data7-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-count-expected_data0-0] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-max-expected_data1-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-min-expected_data2-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-sum-expected_data3-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-mean-expected_data4-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-std-expected_data5-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-var-expected_data6-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-2-median-expected_data7-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-count-expected_data0-0] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-max-expected_data1-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-min-expected_data2-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-sum-expected_data3-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-mean-expected_data4-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-std-expected_data5-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-var-expected_data6-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-5-median-expected_data7-None] PASSED 3646s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-count-expected_data0-0] PASSED 3647s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-max-expected_data1-None] PASSED 3647s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-min-expected_data2-None] PASSED 3647s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-sum-expected_data3-None] PASSED 3647s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-mean-expected_data4-None] PASSED 3647s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-std-expected_data5-None] PASSED 3647s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-var-expected_data6-None] PASSED 3647s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[category-10-median-expected_data7-None] PASSED 3647s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-count-expected_data0-0] PASSED 3647s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-max-expected_data1-None] PASSED 3647s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-min-expected_data2-None] PASSED 3647s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-sum-expected_data3-None] PASSED 3647s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-mean-expected_data4-None] PASSED 3647s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-std-expected_data5-None] PASSED 3647s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-var-expected_data6-None] PASSED 3648s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-None-median-expected_data7-None] PASSED 3648s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-count-expected_data0-0] PASSED 3648s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-max-expected_data1-None] PASSED 3648s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-min-expected_data2-None] PASSED 3648s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-sum-expected_data3-None] PASSED 3648s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-mean-expected_data4-None] PASSED 3648s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-std-expected_data5-None] PASSED 3648s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-var-expected_data6-None] PASSED 3648s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-1-median-expected_data7-None] PASSED 3648s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-count-expected_data0-0] PASSED 3648s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-max-expected_data1-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-min-expected_data2-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-sum-expected_data3-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-mean-expected_data4-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-std-expected_data5-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-var-expected_data6-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-2-median-expected_data7-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-count-expected_data0-0] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-max-expected_data1-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-min-expected_data2-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-sum-expected_data3-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-mean-expected_data4-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-std-expected_data5-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-var-expected_data6-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-5-median-expected_data7-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-count-expected_data0-0] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-max-expected_data1-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-min-expected_data2-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-sum-expected_data3-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-mean-expected_data4-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-std-expected_data5-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-var-expected_data6-None] PASSED 3649s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int8-10-median-expected_data7-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-count-expected_data0-0] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-max-expected_data1-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-min-expected_data2-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-sum-expected_data3-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-mean-expected_data4-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-std-expected_data5-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-var-expected_data6-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-None-median-expected_data7-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-count-expected_data0-0] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-max-expected_data1-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-min-expected_data2-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-sum-expected_data3-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-mean-expected_data4-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-std-expected_data5-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-var-expected_data6-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-1-median-expected_data7-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-count-expected_data0-0] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-max-expected_data1-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-min-expected_data2-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-sum-expected_data3-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-mean-expected_data4-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-std-expected_data5-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-var-expected_data6-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-2-median-expected_data7-None] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-count-expected_data0-0] PASSED 3650s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-max-expected_data1-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-min-expected_data2-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-sum-expected_data3-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-mean-expected_data4-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-std-expected_data5-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-var-expected_data6-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-5-median-expected_data7-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-count-expected_data0-0] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-max-expected_data1-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-min-expected_data2-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-sum-expected_data3-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-mean-expected_data4-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-std-expected_data5-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-var-expected_data6-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int16-10-median-expected_data7-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-count-expected_data0-0] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-max-expected_data1-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-min-expected_data2-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-sum-expected_data3-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-mean-expected_data4-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-std-expected_data5-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-var-expected_data6-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-None-median-expected_data7-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-count-expected_data0-0] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-max-expected_data1-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-min-expected_data2-None] PASSED 3651s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-sum-expected_data3-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-mean-expected_data4-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-std-expected_data5-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-var-expected_data6-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-1-median-expected_data7-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-count-expected_data0-0] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-max-expected_data1-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-min-expected_data2-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-sum-expected_data3-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-mean-expected_data4-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-std-expected_data5-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-var-expected_data6-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-2-median-expected_data7-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-count-expected_data0-0] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-max-expected_data1-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-min-expected_data2-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-sum-expected_data3-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-mean-expected_data4-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-std-expected_data5-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-var-expected_data6-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-5-median-expected_data7-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-count-expected_data0-0] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-max-expected_data1-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-min-expected_data2-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-sum-expected_data3-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-mean-expected_data4-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-std-expected_data5-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-var-expected_data6-None] PASSED 3652s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int32-10-median-expected_data7-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-count-expected_data0-0] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-max-expected_data1-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-min-expected_data2-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-sum-expected_data3-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-mean-expected_data4-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-std-expected_data5-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-var-expected_data6-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-None-median-expected_data7-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-count-expected_data0-0] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-max-expected_data1-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-min-expected_data2-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-sum-expected_data3-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-mean-expected_data4-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-std-expected_data5-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-var-expected_data6-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-1-median-expected_data7-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-count-expected_data0-0] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-max-expected_data1-None] PASSED 3653s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-min-expected_data2-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-sum-expected_data3-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-mean-expected_data4-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-std-expected_data5-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-var-expected_data6-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-2-median-expected_data7-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-count-expected_data0-0] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-max-expected_data1-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-min-expected_data2-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-sum-expected_data3-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-mean-expected_data4-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-std-expected_data5-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-var-expected_data6-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-5-median-expected_data7-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-count-expected_data0-0] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-max-expected_data1-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-min-expected_data2-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-sum-expected_data3-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-mean-expected_data4-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-std-expected_data5-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-var-expected_data6-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[int64-10-median-expected_data7-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-count-expected_data0-0] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-max-expected_data1-None] PASSED 3654s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-min-expected_data2-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-sum-expected_data3-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-mean-expected_data4-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-std-expected_data5-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-var-expected_data6-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-None-median-expected_data7-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-count-expected_data0-0] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-max-expected_data1-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-min-expected_data2-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-sum-expected_data3-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-mean-expected_data4-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-std-expected_data5-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-var-expected_data6-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-1-median-expected_data7-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-count-expected_data0-0] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-max-expected_data1-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-min-expected_data2-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-sum-expected_data3-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-mean-expected_data4-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-std-expected_data5-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-var-expected_data6-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-2-median-expected_data7-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-count-expected_data0-0] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-max-expected_data1-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-min-expected_data2-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-sum-expected_data3-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-mean-expected_data4-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-std-expected_data5-None] PASSED 3655s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-var-expected_data6-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-5-median-expected_data7-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-count-expected_data0-0] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-max-expected_data1-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-min-expected_data2-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-sum-expected_data3-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-mean-expected_data4-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-std-expected_data5-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-var-expected_data6-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint8-10-median-expected_data7-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-count-expected_data0-0] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-max-expected_data1-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-min-expected_data2-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-sum-expected_data3-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-mean-expected_data4-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-std-expected_data5-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-var-expected_data6-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-None-median-expected_data7-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-count-expected_data0-0] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-max-expected_data1-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-min-expected_data2-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-sum-expected_data3-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-mean-expected_data4-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-std-expected_data5-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-var-expected_data6-None] PASSED 3656s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-1-median-expected_data7-None] PASSED 3657s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-count-expected_data0-0] PASSED 3657s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-max-expected_data1-None] PASSED 3657s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-min-expected_data2-None] PASSED 3657s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-sum-expected_data3-None] PASSED 3657s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-mean-expected_data4-None] PASSED 3657s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-std-expected_data5-None] PASSED 3658s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-var-expected_data6-None] PASSED 3658s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-2-median-expected_data7-None] PASSED 3658s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-count-expected_data0-0] PASSED 3658s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-max-expected_data1-None] PASSED 3659s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-min-expected_data2-None] PASSED 3659s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-sum-expected_data3-None] PASSED 3659s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-mean-expected_data4-None] PASSED 3659s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-std-expected_data5-None] PASSED 3660s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-var-expected_data6-None] PASSED 3660s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-5-median-expected_data7-None] PASSED 3660s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-count-expected_data0-0] PASSED 3660s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-max-expected_data1-None] PASSED 3660s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-min-expected_data2-None] PASSED 3660s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-sum-expected_data3-None] PASSED 3660s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-mean-expected_data4-None] PASSED 3660s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-std-expected_data5-None] PASSED 3660s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-var-expected_data6-None] PASSED 3660s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint16-10-median-expected_data7-None] PASSED 3660s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-count-expected_data0-0] PASSED 3661s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-max-expected_data1-None] PASSED 3661s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-min-expected_data2-None] PASSED 3661s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-sum-expected_data3-None] PASSED 3661s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-mean-expected_data4-None] PASSED 3661s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-std-expected_data5-None] PASSED 3661s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-var-expected_data6-None] PASSED 3661s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-None-median-expected_data7-None] PASSED 3661s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-count-expected_data0-0] PASSED 3661s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-max-expected_data1-None] PASSED 3661s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-min-expected_data2-None] PASSED 3661s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-sum-expected_data3-None] PASSED 3661s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-mean-expected_data4-None] PASSED 3661s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-std-expected_data5-None] PASSED 3661s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-var-expected_data6-None] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-1-median-expected_data7-None] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-count-expected_data0-0] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-max-expected_data1-None] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-min-expected_data2-None] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-sum-expected_data3-None] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-mean-expected_data4-None] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-std-expected_data5-None] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-var-expected_data6-None] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-2-median-expected_data7-None] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-count-expected_data0-0] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-max-expected_data1-None] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-min-expected_data2-None] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-sum-expected_data3-None] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-mean-expected_data4-None] PASSED 3662s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-std-expected_data5-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-var-expected_data6-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-5-median-expected_data7-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-count-expected_data0-0] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-max-expected_data1-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-min-expected_data2-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-sum-expected_data3-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-mean-expected_data4-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-std-expected_data5-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-var-expected_data6-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint32-10-median-expected_data7-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-count-expected_data0-0] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-max-expected_data1-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-min-expected_data2-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-sum-expected_data3-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-mean-expected_data4-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-std-expected_data5-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-var-expected_data6-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-None-median-expected_data7-None] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-count-expected_data0-0] PASSED 3663s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-max-expected_data1-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-min-expected_data2-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-sum-expected_data3-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-mean-expected_data4-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-std-expected_data5-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-var-expected_data6-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-1-median-expected_data7-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-count-expected_data0-0] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-max-expected_data1-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-min-expected_data2-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-sum-expected_data3-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-mean-expected_data4-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-std-expected_data5-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-var-expected_data6-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-2-median-expected_data7-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-count-expected_data0-0] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-max-expected_data1-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-min-expected_data2-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-sum-expected_data3-None] PASSED 3664s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-mean-expected_data4-None] PASSED 3665s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-std-expected_data5-None] PASSED 3665s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-var-expected_data6-None] PASSED 3665s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-5-median-expected_data7-None] PASSED 3665s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-count-expected_data0-0] PASSED 3665s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-max-expected_data1-None] PASSED 3665s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-min-expected_data2-None] PASSED 3665s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-sum-expected_data3-None] PASSED 3666s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-mean-expected_data4-None] PASSED 3666s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-std-expected_data5-None] PASSED 3666s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-var-expected_data6-None] PASSED 3666s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[uint64-10-median-expected_data7-None] PASSED 3666s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-count-expected_data0-0] PASSED 3666s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-max-expected_data1-None] PASSED 3667s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-min-expected_data2-None] PASSED 3667s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-sum-expected_data3-None] PASSED 3667s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-mean-expected_data4-None] PASSED 3667s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-std-expected_data5-None] PASSED 3667s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-var-expected_data6-None] PASSED 3667s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-None-median-expected_data7-None] PASSED 3667s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-count-expected_data0-0] PASSED 3668s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-max-expected_data1-None] PASSED 3668s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-min-expected_data2-None] PASSED 3668s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-sum-expected_data3-None] PASSED 3668s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-mean-expected_data4-None] PASSED 3668s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-std-expected_data5-None] PASSED 3668s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-var-expected_data6-None] PASSED 3668s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-1-median-expected_data7-None] PASSED 3669s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-count-expected_data0-0] PASSED 3669s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-max-expected_data1-None] PASSED 3669s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-min-expected_data2-None] PASSED 3669s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-sum-expected_data3-None] PASSED 3669s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-mean-expected_data4-None] PASSED 3669s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-std-expected_data5-None] PASSED 3669s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-var-expected_data6-None] PASSED 3669s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-2-median-expected_data7-None] PASSED 3670s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-count-expected_data0-0] PASSED 3670s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-max-expected_data1-None] PASSED 3670s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-min-expected_data2-None] PASSED 3670s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-sum-expected_data3-None] PASSED 3670s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-mean-expected_data4-None] PASSED 3670s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-std-expected_data5-None] PASSED 3670s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-var-expected_data6-None] PASSED 3670s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-5-median-expected_data7-None] PASSED 3670s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-count-expected_data0-0] PASSED 3670s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-max-expected_data1-None] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-min-expected_data2-None] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-sum-expected_data3-None] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-mean-expected_data4-None] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-std-expected_data5-None] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-var-expected_data6-None] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float16-10-median-expected_data7-None] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-count-expected_data0-0] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-max-expected_data1-None] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-min-expected_data2-None] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-sum-expected_data3-None] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-mean-expected_data4-None] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-std-expected_data5-None] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-var-expected_data6-None] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-None-median-expected_data7-None] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-count-expected_data0-0] PASSED 3671s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-max-expected_data1-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-min-expected_data2-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-sum-expected_data3-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-mean-expected_data4-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-std-expected_data5-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-var-expected_data6-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-1-median-expected_data7-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-count-expected_data0-0] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-max-expected_data1-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-min-expected_data2-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-sum-expected_data3-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-mean-expected_data4-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-std-expected_data5-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-var-expected_data6-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-2-median-expected_data7-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-count-expected_data0-0] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-max-expected_data1-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-min-expected_data2-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-sum-expected_data3-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-mean-expected_data4-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-std-expected_data5-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-var-expected_data6-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-5-median-expected_data7-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-count-expected_data0-0] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-max-expected_data1-None] PASSED 3672s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-min-expected_data2-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-sum-expected_data3-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-mean-expected_data4-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-std-expected_data5-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-var-expected_data6-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float32-10-median-expected_data7-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-count-expected_data0-0] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-max-expected_data1-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-min-expected_data2-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-sum-expected_data3-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-mean-expected_data4-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-std-expected_data5-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-var-expected_data6-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-None-median-expected_data7-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-count-expected_data0-0] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-max-expected_data1-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-min-expected_data2-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-sum-expected_data3-None] PASSED 3673s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-mean-expected_data4-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-std-expected_data5-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-var-expected_data6-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-1-median-expected_data7-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-count-expected_data0-0] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-max-expected_data1-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-min-expected_data2-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-sum-expected_data3-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-mean-expected_data4-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-std-expected_data5-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-var-expected_data6-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-2-median-expected_data7-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-count-expected_data0-0] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-max-expected_data1-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-min-expected_data2-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-sum-expected_data3-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-mean-expected_data4-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-std-expected_data5-None] PASSED 3674s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-var-expected_data6-None] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-5-median-expected_data7-None] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-count-expected_data0-0] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-max-expected_data1-None] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-min-expected_data2-None] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-sum-expected_data3-None] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-mean-expected_data4-None] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-std-expected_data5-None] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-var-expected_data6-None] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[float64-10-median-expected_data7-None] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-count-expected_data0-0] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-max-expected_data1-None] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-min-expected_data2-None] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-sum-expected_data3-None] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-mean-expected_data4-None] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-std-expected_data5-None] PASSED 3675s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-var-expected_data6-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-None-median-expected_data7-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-count-expected_data0-0] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-max-expected_data1-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-min-expected_data2-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-sum-expected_data3-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-mean-expected_data4-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-std-expected_data5-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-var-expected_data6-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-1-median-expected_data7-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-count-expected_data0-0] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-max-expected_data1-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-min-expected_data2-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-sum-expected_data3-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-mean-expected_data4-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-std-expected_data5-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-var-expected_data6-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-2-median-expected_data7-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-count-expected_data0-0] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-max-expected_data1-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-min-expected_data2-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-sum-expected_data3-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-mean-expected_data4-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-std-expected_data5-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-var-expected_data6-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-5-median-expected_data7-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-count-expected_data0-0] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-max-expected_data1-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-min-expected_data2-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-sum-expected_data3-None] PASSED 3676s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-mean-expected_data4-None] PASSED 3677s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-std-expected_data5-None] PASSED 3677s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-var-expected_data6-None] PASSED 3677s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[m8[ns]-10-median-expected_data7-None] PASSED 3677s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-count-expected_data0-0] PASSED 3677s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-max-expected_data1-None] PASSED 3677s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-min-expected_data2-None] PASSED 3677s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-sum-expected_data3-None] PASSED 3677s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-mean-expected_data4-None] PASSED 3677s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-std-expected_data5-None] PASSED 3677s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-var-expected_data6-None] PASSED 3677s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-None-median-expected_data7-None] PASSED 3677s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-count-expected_data0-0] PASSED 3677s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-max-expected_data1-None] PASSED 3677s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-min-expected_data2-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-sum-expected_data3-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-mean-expected_data4-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-std-expected_data5-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-var-expected_data6-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-1-median-expected_data7-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-count-expected_data0-0] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-max-expected_data1-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-min-expected_data2-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-sum-expected_data3-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-mean-expected_data4-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-std-expected_data5-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-var-expected_data6-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-2-median-expected_data7-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-count-expected_data0-0] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-max-expected_data1-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-min-expected_data2-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-sum-expected_data3-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-mean-expected_data4-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-std-expected_data5-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-var-expected_data6-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-5-median-expected_data7-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-count-expected_data0-0] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-max-expected_data1-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-min-expected_data2-None] PASSED 3678s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-sum-expected_data3-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-mean-expected_data4-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-std-expected_data5-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-var-expected_data6-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[M8[ns]-10-median-expected_data7-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-count-expected_data0-0] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-max-expected_data1-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-min-expected_data2-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-sum-expected_data3-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-mean-expected_data4-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-std-expected_data5-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-var-expected_data6-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-None-median-expected_data7-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-count-expected_data0-0] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-max-expected_data1-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-min-expected_data2-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-sum-expected_data3-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-mean-expected_data4-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-std-expected_data5-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-var-expected_data6-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-1-median-expected_data7-None] PASSED 3679s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-count-expected_data0-0] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-max-expected_data1-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-min-expected_data2-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-sum-expected_data3-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-mean-expected_data4-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-std-expected_data5-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-var-expected_data6-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-2-median-expected_data7-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-count-expected_data0-0] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-max-expected_data1-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-min-expected_data2-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-sum-expected_data3-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-mean-expected_data4-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-std-expected_data5-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-var-expected_data6-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-5-median-expected_data7-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-count-expected_data0-0] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-max-expected_data1-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-min-expected_data2-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-sum-expected_data3-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-mean-expected_data4-None] PASSED 3680s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-std-expected_data5-None] PASSED 3681s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-var-expected_data6-None] PASSED 3681s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_dtypes.py::test_dataframe_dtypes[datetime64[ns, UTC]-10-median-expected_data7-None] PASSED 3681s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_doc_string PASSED 3681s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_constructor[DataFrame] PASSED 3681s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_constructor[Series] PASSED 3681s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_times_not_datetime_type PASSED 3681s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_times_not_same_length PASSED 3681s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_halflife_not_correct_type PASSED 3681s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_halflife_without_times[1 day] PASSED 3682s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_halflife_without_times[halflife_with_times1] PASSED 3682s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_halflife_without_times[halflife_with_times2] PASSED 3682s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[1 day-0-times0] PASSED 3682s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[1 day-0-times1] PASSED 3682s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[1 day-0-times2] PASSED 3682s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[1 day-2-times0] PASSED 3682s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[1 day-2-times1] PASSED 3682s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[1 day-2-times2] PASSED 3682s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times1-0-times0] PASSED 3682s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times1-0-times1] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times1-0-times2] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times1-2-times0] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times1-2-times1] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times1-2-times2] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times2-0-times0] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times2-0-times1] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times2-0-times2] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times2-2-times0] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times2-2-times1] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_equal_spacing[halflife_with_times2-2-times2] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['UTC'] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['US/Eastern'] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['Asia/Tokyo'] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['dateutil/US/Pacific'] PASSED 3683s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['dateutil/Asia/Singapore'] PASSED 3684s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['+01:15'] PASSED 3684s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['-02:15'] PASSED 3684s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['UTC+01:15'] PASSED 3684s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing['UTC-02:15'] PASSED 3684s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[tzutc()] PASSED 3684s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[tzlocal()] PASSED 3684s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[pytz.FixedOffset(300)] PASSED 3684s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[] PASSED 3684s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[pytz.FixedOffset(-300)] PASSED 3684s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[datetime.timezone.utc] PASSED 3685s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[datetime.timezone(datetime.timedelta(seconds=3600))] PASSED 3685s ../../../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 3685s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[zoneinfo.ZoneInfo(key='US/Pacific')] PASSED 3685s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_with_times_variable_spacing[zoneinfo.ZoneInfo(key='UTC')] PASSED 3685s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_with_nat_raises[1 day] PASSED 3685s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_with_nat_raises[halflife_with_times1] PASSED 3685s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_with_nat_raises[halflife_with_times2] PASSED 3685s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_with_times_getitem[1 day] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_with_times_getitem[halflife_with_times1] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_with_times_getitem[halflife_with_times2] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-True-com] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-True-halflife] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-True-span] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-True-alpha] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-False-com] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-False-halflife] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-False-span] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[True-False-alpha] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-True-com] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-True-halflife] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-True-span] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-True-alpha] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-False-com] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-False-halflife] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-False-span] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_getitem_attributes_retained[False-False-alpha] PASSED 3686s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_times_adjust_false_raises PASSED 3687s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float-mean-expected0] PASSED 3687s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float-std-expected1] PASSED 3687s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float-var-expected2] PASSED 3687s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float32-mean-expected0] PASSED 3687s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float32-std-expected1] PASSED 3687s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float32-var-expected2] PASSED 3687s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float64-mean-expected0] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float64-std-expected1] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_float_dtype_ewma[float64-var-expected2] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_times_string_col_raises PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_sum_adjust_false_notimplemented PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_sum[expected_data0-False] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_sum[expected_data1-True] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_adjust PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_cases[True-True] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_cases[True-False] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_cases[False-True] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_cases[False-False] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s0-True-False-w0] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s1-True-True-w1] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s2-False-False-w2] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s3-False-True-w3] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s4-True-False-w4] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s5-True-True-w5] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s6-False-False-w6] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s7-False-True-w7] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s8-True-False-w8] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s9-True-True-w9] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s10-False-False-w10] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s11-False-True-w11] PASSED 3688s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s12-True-False-w12] PASSED 3689s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s13-True-True-w13] PASSED 3689s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s14-False-False-w14] PASSED 3689s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_nan_handling_cases[s15-False-True-w15] PASSED 3689s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_alpha PASSED 3689s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_domain_checks PASSED 3689s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_empty_series[mean] PASSED 3689s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_empty_series[std] PASSED 3689s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_empty_series[var] PASSED 3689s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_min_periods[mean-0] PASSED 3689s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_min_periods[mean-1] PASSED 3689s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_min_periods[var-0] PASSED 3690s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_min_periods[var-1] PASSED 3690s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_min_periods[std-0] PASSED 3690s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ew_min_periods[std-1] PASSED 3690s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov[cov] PASSED 3691s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov[corr] PASSED 3691s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov_min_periods[cov-0] PASSED 3691s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov_min_periods[cov-1] PASSED 3691s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov_min_periods[cov-2] PASSED 3691s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov_min_periods[corr-0] PASSED 3692s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov_min_periods[corr-1] PASSED 3692s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_corr_cov_min_periods[corr-2] PASSED 3692s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_different_input_array_raise_exception[cov] PASSED 3692s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_different_input_array_raise_exception[corr] PASSED 3692s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_series[var] PASSED 3692s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_series[std] PASSED 3692s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_series[mean] PASSED 3693s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_frame[var] PASSED 3693s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_frame[std] PASSED 3693s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_frame[mean] PASSED 3693s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_span_com_args PASSED 3694s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewma_halflife_arg PASSED 3694s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_alpha_arg PASSED 3694s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_pairwise_cov_corr[cov] PASSED 3694s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_ewm_pairwise_cov_corr[corr] PASSED 3695s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[sum-True] PASSED 3695s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[sum-False] PASSED 3695s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[mean-True] PASSED 3695s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[mean-False] PASSED 3696s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[median-True] PASSED 3696s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[median-False] PASSED 3696s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[max-True] PASSED 3696s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[max-False] PASSED 3696s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[min-True] PASSED 3696s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[min-False] PASSED 3696s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[var-True] PASSED 3696s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[var-False] PASSED 3697s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[std-True] PASSED 3697s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[std-False] PASSED 3698s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[kurt-True] PASSED 3698s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[kurt-False] PASSED 3698s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[skew-True] PASSED 3699s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[skew-False] PASSED 3699s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[count-True] PASSED 3699s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[count-False] PASSED 3700s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[sem-True] PASSED 3700s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_frame[sem-False] PASSED 3700s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[True-True-corr] PASSED 3700s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[True-True-cov] PASSED 3701s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[True-False-corr] PASSED 3701s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[True-False-cov] PASSED 3702s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[False-True-corr] PASSED 3703s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[False-True-cov] PASSED 3703s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[False-False-corr] PASSED 3704s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_frame[False-False-cov] PASSED 3704s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sum-True-int] PASSED 3705s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sum-True-object] PASSED 3705s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sum-False-int] PASSED 3705s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sum-False-object] PASSED 3705s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[mean-True-int] PASSED 3706s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[mean-True-object] PASSED 3706s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[mean-False-int] PASSED 3706s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[mean-False-object] PASSED 3706s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[median-True-int] SKIPPED 3707s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[median-True-object] SKIPPED 3707s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[median-False-int] SKIPPED 3707s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[median-False-object] SKIPPED 3707s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[max-True-int] SKIPPED 3708s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[max-True-object] SKIPPED 3708s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[max-False-int] SKIPPED 3708s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[max-False-object] SKIPPED 3709s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[min-True-int] SKIPPED 3709s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[min-True-object] SKIPPED 3709s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[min-False-int] SKIPPED 3710s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[min-False-object] SKIPPED 3710s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[var-True-int] PASSED 3710s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[var-True-object] PASSED 3711s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[var-False-int] PASSED 3711s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[var-False-object] PASSED 3711s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[std-True-int] PASSED 3711s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[std-True-object] PASSED 3712s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[std-False-int] PASSED 3712s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[std-False-object] PASSED 3712s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[kurt-True-int] SKIPPED 3712s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[kurt-True-object] SKIPPED 3712s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[kurt-False-int] SKIPPED 3712s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[kurt-False-object] SKIPPED 3712s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[skew-True-int] SKIPPED 3712s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[skew-True-object] SKIPPED 3713s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[skew-False-int] SKIPPED 3713s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[skew-False-object] SKIPPED 3713s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[count-True-int] SKIPPED 3713s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[count-True-object] SKIPPED 3713s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[count-False-int] SKIPPED 3713s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[count-False-object] SKIPPED 3714s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sem-True-int] SKIPPED 3714s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sem-True-object] SKIPPED 3714s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sem-False-int] SKIPPED 3714s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_series[sem-False-object] SKIPPED 3714s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-int-True-corr] PASSED 3714s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-int-True-cov] PASSED 3715s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-int-False-corr] PASSED 3715s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-int-False-cov] PASSED 3715s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-object-True-corr] PASSED 3715s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-object-True-cov] PASSED 3716s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-object-False-corr] PASSED 3716s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[True-object-False-cov] PASSED 3716s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-int-True-corr] PASSED 3717s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-int-True-cov] PASSED 3717s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-int-False-corr] PASSED 3717s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-int-False-cov] PASSED 3717s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-object-True-corr] PASSED 3717s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-object-True-cov] PASSED 3718s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-object-False-corr] PASSED 3718s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_ewm.py::test_numeric_only_corr_cov_series[False-object-False-cov] PASSED 3718s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_doc_string PASSED 3718s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor[DataFrame] PASSED 3718s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor[Series] PASSED 3719s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor_invalid[DataFrame-2.0] PASSED 3719s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor_invalid[DataFrame-foo] PASSED 3719s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor_invalid[DataFrame-w2] PASSED 3719s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor_invalid[Series-2.0] PASSED 3719s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor_invalid[Series-foo] PASSED 3719s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_constructor_invalid[Series-w2] PASSED 3719s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_empty_df_expanding[1] PASSED 3720s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_empty_df_expanding[ls] XFAIL 3720s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_missing_minp_zero PASSED 3720s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_axis[axis=0] PASSED 3721s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_axis[axis=1] PASSED 3721s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_axis[axis='index'] PASSED 3721s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_axis[axis='columns'] PASSED 3721s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_count_with_min_periods[DataFrame] PASSED 3721s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_count_with_min_periods[Series] PASSED 3721s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_count_default_min_periods_with_null_values[DataFrame] PASSED 3721s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_count_default_min_periods_with_null_values[Series] PASSED 3721s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_count_with_min_periods_exceeding_series_length[DataFrame] PASSED 3721s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_count_with_min_periods_exceeding_series_length[Series] PASSED 3721s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df0-expected0-3] PASSED 3721s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df1-expected1-2] PASSED 3721s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df2-expected2-1] PASSED 3722s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df3-expected3-2] PASSED 3722s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df4-expected4-1] PASSED 3722s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df5-expected5-3] PASSED 3722s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df6-expected6-2] PASSED 3722s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_dataframe[df7-expected7-1] PASSED 3722s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_series[ser0-expected0-3] PASSED 3722s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_series[ser1-expected1-2] PASSED 3722s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_series[ser2-expected2-1] PASSED 3722s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_series[ser3-expected3-2] PASSED 3722s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_series[ser4-expected4-2] PASSED 3723s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_iter_expanding_series[ser5-expected5-2] PASSED 3723s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_center_invalid PASSED 3723s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_sem[DataFrame] PASSED 3723s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_sem[Series] PASSED 3723s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_skew_kurt_numerical_stability[skew] PASSED 3723s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_skew_kurt_numerical_stability[kurt] PASSED 3723s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-min-1] PASSED 3723s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-min-3] PASSED 3723s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-min-10] PASSED 3724s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-min-20] PASSED 3724s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-max-1] PASSED 3724s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-max-3] PASSED 3724s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-max-10] PASSED 3724s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-max-20] PASSED 3725s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-average-1] PASSED 3725s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-average-3] PASSED 3725s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-average-10] PASSED 3725s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-True-average-20] PASSED 3725s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-min-1] PASSED 3725s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-min-3] PASSED 3725s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-min-10] PASSED 3725s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-min-20] PASSED 3726s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-max-1] PASSED 3726s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-max-3] PASSED 3726s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-max-10] PASSED 3726s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-max-20] PASSED 3726s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-average-1] PASSED 3726s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-average-3] PASSED 3726s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-average-10] PASSED 3727s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-True-False-average-20] PASSED 3727s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-min-1] PASSED 3727s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-min-3] PASSED 3727s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-min-10] PASSED 3727s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-min-20] PASSED 3727s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-max-1] PASSED 3728s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-max-3] PASSED 3728s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-max-10] PASSED 3729s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-max-20] PASSED 3729s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-average-1] PASSED 3729s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-average-3] PASSED 3729s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-average-10] PASSED 3729s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-True-average-20] PASSED 3729s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-min-1] PASSED 3729s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-min-3] PASSED 3729s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-min-10] PASSED 3730s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-min-20] PASSED 3730s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-max-1] PASSED 3730s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-max-3] PASSED 3730s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-max-10] PASSED 3730s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-max-20] PASSED 3730s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-average-1] PASSED 3730s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-average-3] PASSED 3730s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-average-10] PASSED 3730s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[default-False-False-average-20] PASSED 3730s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-min-1] PASSED 3730s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-min-3] PASSED 3731s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-min-10] PASSED 3731s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-min-20] PASSED 3731s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-max-1] PASSED 3731s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-max-3] PASSED 3731s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-max-10] PASSED 3731s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-max-20] PASSED 3732s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-average-1] PASSED 3732s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-average-3] PASSED 3732s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-average-10] PASSED 3732s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-True-average-20] PASSED 3732s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-min-1] PASSED 3732s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-min-3] PASSED 3732s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-min-10] PASSED 3732s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-min-20] PASSED 3732s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-max-1] PASSED 3732s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-max-3] PASSED 3732s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-max-10] PASSED 3732s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-max-20] PASSED 3732s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-average-1] PASSED 3733s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-average-3] PASSED 3733s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-average-10] PASSED 3733s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-True-False-average-20] PASSED 3733s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-min-1] PASSED 3733s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-min-3] PASSED 3733s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-min-10] PASSED 3733s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-min-20] PASSED 3733s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-max-1] PASSED 3733s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-max-3] PASSED 3733s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-max-10] PASSED 3733s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-max-20] PASSED 3733s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-average-1] PASSED 3733s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-average-3] PASSED 3734s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-average-10] PASSED 3734s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-True-average-20] PASSED 3734s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-min-1] PASSED 3734s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-min-3] PASSED 3734s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-min-10] PASSED 3734s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-min-20] PASSED 3734s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-max-1] PASSED 3734s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-max-3] PASSED 3734s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-max-10] PASSED 3734s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-max-20] PASSED 3734s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-average-1] PASSED 3735s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-average-3] PASSED 3735s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-average-10] PASSED 3735s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[duplicates-False-False-average-20] PASSED 3735s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-min-1] PASSED 3735s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-min-3] PASSED 3735s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-min-10] PASSED 3735s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-min-20] PASSED 3735s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-max-1] PASSED 3735s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-max-3] PASSED 3735s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-max-10] PASSED 3735s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-max-20] PASSED 3736s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-average-1] PASSED 3736s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-average-3] PASSED 3736s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-average-10] PASSED 3736s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-True-average-20] PASSED 3736s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-min-1] PASSED 3737s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-min-3] PASSED 3737s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-min-10] PASSED 3737s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-min-20] PASSED 3737s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-max-1] PASSED 3737s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-max-3] PASSED 3738s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-max-10] PASSED 3738s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-max-20] PASSED 3738s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-average-1] PASSED 3738s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-average-3] PASSED 3738s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-average-10] PASSED 3739s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-True-False-average-20] PASSED 3739s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-min-1] PASSED 3739s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-min-3] PASSED 3739s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-min-10] PASSED 3739s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-min-20] PASSED 3739s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-max-1] PASSED 3740s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-max-3] PASSED 3740s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-max-10] PASSED 3740s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-max-20] PASSED 3740s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-average-1] PASSED 3740s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-average-3] PASSED 3741s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-average-10] PASSED 3741s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-True-average-20] PASSED 3741s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-min-1] PASSED 3741s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-min-3] PASSED 3741s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-min-10] PASSED 3742s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-min-20] PASSED 3742s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-max-1] PASSED 3742s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-max-3] PASSED 3743s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-max-10] PASSED 3743s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-max-20] PASSED 3744s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-average-1] PASSED 3744s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-average-3] PASSED 3745s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-average-10] PASSED 3745s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_rank[nans-False-False-average-20] PASSED 3745s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_corr PASSED 3745s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_count PASSED 3745s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_quantile PASSED 3746s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_cov PASSED 3746s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_cov_pairwise PASSED 3746s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_corr_pairwise PASSED 3747s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[DataFrame-sum] PASSED 3749s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[DataFrame-mean] PASSED 3750s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[DataFrame-max] PASSED 3751s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[DataFrame-min] PASSED 3752s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[Series-sum] PASSED 3752s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[Series-mean] PASSED 3752s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[Series-max] PASSED 3753s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_func[Series-min] PASSED 3753s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_min_periods[sum] PASSED 3753s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_min_periods[mean] PASSED 3754s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_min_periods[max] PASSED 3754s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_min_periods[min] PASSED 3754s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply[engine_and_raw0-DataFrame] SKIPPED 3754s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply[engine_and_raw0-Series] SKIPPED 3754s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply[engine_and_raw1-DataFrame] PASSED 3754s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply[engine_and_raw1-Series] PASSED 3754s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply[engine_and_raw2-DataFrame] PASSED 3754s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply[engine_and_raw2-Series] PASSED 3754s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_min_periods_apply[engine_and_raw0] SKIPPED 3755s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_min_periods_apply[engine_and_raw1] PASSED 3755s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_min_periods_apply[engine_and_raw2] PASSED 3756s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length_pairwise[0] PASSED 3757s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length_pairwise[1] PASSED 3759s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[0] PASSED 3760s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[1] PASSED 3760s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[2] PASSED 3761s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[3] PASSED 3762s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[4] PASSED 3762s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[5] PASSED 3762s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[6] PASSED 3762s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[7] PASSED 3762s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[8] PASSED 3762s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[9] PASSED 3762s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[10] PASSED 3762s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[11] PASSED 3762s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[12] PASSED 3762s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[13] PASSED 3763s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_moment_functions_zero_length[14] PASSED 3763s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_empty_series[engine_and_raw0] SKIPPED 3763s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_empty_series[engine_and_raw1] PASSED 3763s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_empty_series[engine_and_raw2] PASSED 3763s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_min_periods_0[engine_and_raw0] SKIPPED 3763s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_min_periods_0[engine_and_raw1] PASSED 3763s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_min_periods_0[engine_and_raw2] PASSED 3763s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_cov_diff_index PASSED 3764s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_corr_diff_index PASSED 3767s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_cov_pairwise_diff_length PASSED 3770s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_corr_pairwise_diff_length PASSED 3771s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_args_kwargs[engine_and_raw0] SKIPPED 3774s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_args_kwargs[engine_and_raw1] PASSED 3775s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_expanding_apply_args_kwargs[engine_and_raw2] PASSED 3776s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[sum-True] PASSED 3776s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[sum-False] PASSED 3777s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[mean-True] PASSED 3777s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[mean-False] PASSED 3777s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[median-True] PASSED 3777s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[median-False] PASSED 3777s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[max-True] PASSED 3778s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[max-False] PASSED 3778s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[min-True] PASSED 3778s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[min-False] PASSED 3779s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[var-True] PASSED 3779s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[var-False] PASSED 3779s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[std-True] PASSED 3780s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[std-False] PASSED 3781s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[kurt-True] PASSED 3781s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[kurt-False] PASSED 3781s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[skew-True] PASSED 3781s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[skew-False] PASSED 3781s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[count-True] PASSED 3781s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[count-False] PASSED 3781s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[sem-True] PASSED 3782s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_frame[sem-False] PASSED 3782s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[True-True-corr] PASSED 3782s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[True-True-cov] PASSED 3782s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[True-False-corr] PASSED 3782s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[True-False-cov] PASSED 3782s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[False-True-corr] PASSED 3782s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[False-True-cov] PASSED 3782s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[False-False-corr] PASSED 3782s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_frame[False-False-cov] PASSED 3782s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sum-True-int] PASSED 3782s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sum-True-object] PASSED 3782s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sum-False-int] PASSED 3782s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sum-False-object] PASSED 3783s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[mean-True-int] PASSED 3783s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[mean-True-object] PASSED 3783s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[mean-False-int] PASSED 3783s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[mean-False-object] PASSED 3783s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[median-True-int] PASSED 3783s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[median-True-object] PASSED 3783s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[median-False-int] PASSED 3783s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[median-False-object] PASSED 3783s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[max-True-int] PASSED 3783s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[max-True-object] PASSED 3783s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[max-False-int] PASSED 3783s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[max-False-object] PASSED 3784s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[min-True-int] PASSED 3784s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[min-True-object] PASSED 3784s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[min-False-int] PASSED 3784s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[min-False-object] PASSED 3784s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[var-True-int] PASSED 3784s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[var-True-object] PASSED 3784s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[var-False-int] PASSED 3784s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[var-False-object] PASSED 3784s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[std-True-int] PASSED 3784s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[std-True-object] PASSED 3784s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[std-False-int] PASSED 3784s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[std-False-object] PASSED 3785s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[kurt-True-int] PASSED 3785s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[kurt-True-object] PASSED 3786s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[kurt-False-int] PASSED 3786s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[kurt-False-object] PASSED 3786s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[skew-True-int] PASSED 3787s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[skew-True-object] PASSED 3788s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[skew-False-int] PASSED 3788s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[skew-False-object] PASSED 3788s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[count-True-int] PASSED 3789s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[count-True-object] PASSED 3789s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[count-False-int] PASSED 3789s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[count-False-object] PASSED 3789s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sem-True-int] PASSED 3789s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sem-True-object] PASSED 3789s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sem-False-int] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_series[sem-False-object] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-int-True-corr] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-int-True-cov] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-int-False-corr] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-int-False-cov] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-object-True-corr] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-object-True-cov] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-object-False-corr] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[True-object-False-cov] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-int-True-corr] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-int-True-cov] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-int-False-corr] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-int-False-cov] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-object-True-corr] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-object-True-cov] PASSED 3790s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-object-False-corr] PASSED 3791s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_numeric_only_corr_cov_series[False-object-False-cov] PASSED 3791s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_expanding.py::test_keyword_quantile_deprecated PASSED 3791s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_unsupported_argument PASSED 3791s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_getitem PASSED 3792s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_getitem_multiple PASSED 3792s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling[sum] PASSED 3792s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling[mean] PASSED 3792s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling[min] PASSED 3792s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling[max] PASSED 3792s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling[count] PASSED 3792s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling[kurt] PASSED 3792s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling[skew] PASSED 3792s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_ddof[std] PASSED 3793s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_ddof[var] PASSED 3793s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_quantile[linear] PASSED 3793s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_quantile[lower] PASSED 3793s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_quantile[higher] PASSED 3793s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_quantile[midpoint] PASSED 3794s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_quantile[nearest] PASSED 3794s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_other_same_size_as_groups[corr-1] PASSED 3794s ../../../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 3794s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_other_diff_size_as_groups[corr] PASSED 3794s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_other_diff_size_as_groups[cov] PASSED 3794s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_pairwise[corr] PASSED 3794s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_pairwise[cov] PASSED 3794s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_unordered[cov-expected_values0] PASSED 3794s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_corr_cov_unordered[corr-expected_values1] PASSED 3794s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_apply[True] PASSED 3794s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_apply[False] PASSED 3795s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_rolling_apply_mutability PASSED 3795s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling[1.0-True] PASSED 3795s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling[0.0-False] PASSED 3795s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_center_center PASSED 3795s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_center_on PASSED 3795s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_center_min_periods[5] PASSED 3795s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_center_min_periods[4] PASSED 3795s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_center_min_periods[3] PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_subselect_rolling PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_custom_indexer PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_subset_with_closed PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_subset_rolling_subset_with_closed PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_index_changed[max] PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_index_changed[min] PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_empty_frame PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_string_index PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_no_sort PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_count_closed_on PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_sem[rolling-kwargs0] PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_sem[expanding-kwargs1] PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_nans_in_index[rollings0-a] PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_nans_in_index[rollings1-index] PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_group_keys[True] PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_group_keys[False] PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_index_level_and_column_label PASSED 3796s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_resulting_multiindex PASSED 3797s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_resulting_multiindex2 PASSED 3797s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_resulting_multiindex3 PASSED 3797s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_object_doesnt_affect_groupby_apply PASSED 3797s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_var[2-0-left-expected0] PASSED 3797s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_var[2-2-left-expected1] PASSED 3797s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_var[4-4-left-expected2] PASSED 3797s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_var[4-4-right-expected3] PASSED 3797s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_by_column_not_in_values[columns0] PASSED 3798s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_by_column_not_in_values[columns1] PASSED 3798s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_level PASSED 3799s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_as_index_false[by0-expected_data0] PASSED 3799s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_as_index_false[by1-expected_data1] PASSED 3799s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[uint8] PASSED 3799s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[uint16] PASSED 3800s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[uint32] PASSED 3800s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[uint64] PASSED 3801s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[int] PASSED 3801s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[int8] PASSED 3801s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[int16] PASSED 3801s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[int32] PASSED 3801s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_nan_and_zero_endpoints[int64] PASSED 3802s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_rolling_non_monotonic PASSED 3802s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_groupby_monotonic PASSED 3802s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_datelike_on_monotonic_within_each_group PASSED 3802s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestRolling::test_datelike_on_not_monotonic_within_each_group PASSED 3802s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding[sum] PASSED 3802s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding[mean] PASSED 3802s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding[min] PASSED 3803s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding[max] PASSED 3803s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding[count] PASSED 3803s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding[kurt] PASSED 3803s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding[skew] PASSED 3804s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_ddof[std] PASSED 3804s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_ddof[var] PASSED 3804s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_quantile[linear] PASSED 3804s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_quantile[lower] PASSED 3804s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_quantile[higher] PASSED 3804s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_quantile[midpoint] PASSED 3804s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_quantile[nearest] PASSED 3804s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_corr_cov[corr] PASSED 3804s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_corr_cov[cov] PASSED 3804s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_apply[True] PASSED 3804s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestExpanding::test_expanding_apply[False] PASSED 3804s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_methods[mean-expected_data0] PASSED 3804s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_methods[std-expected_data1] PASSED 3805s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_methods[var-expected_data2] PASSED 3805s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_pairwise_methods[corr-expected_data0] PASSED 3805s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_pairwise_methods[cov-expected_data1] PASSED 3805s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_times PASSED 3805s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_times_array PASSED 3805s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::TestEWM::test_dont_mutate_obj_after_slicing PASSED 3805s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::test_rolling_corr_with_single_integer_in_index PASSED 3806s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_groupby.py::test_rolling_corr_with_tuples_in_index PASSED 3806s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-None-True] SKIPPED 3806s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-None-False] SKIPPED 3806s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-1-True] SKIPPED 3806s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-1-False] SKIPPED 3806s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-2-True] SKIPPED 3806s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-2-False] SKIPPED 3806s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-5-True] SKIPPED 3806s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-5-False] SKIPPED 3806s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-10-True] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-True-10-False] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-None-True] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-None-False] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-1-True] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-1-False] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-2-True] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-2-False] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-5-True] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-5-False] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-10-True] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-True-True-False-10-False] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-None-True] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-None-False] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-1-True] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-1-False] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-2-True] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-2-False] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-5-True] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-5-False] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-10-True] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-True-10-False] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-None-True] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-None-False] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-1-True] SKIPPED 3807s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-1-False] SKIPPED 3808s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-2-True] SKIPPED 3808s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-2-False] SKIPPED 3809s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-5-True] SKIPPED 3809s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-5-False] SKIPPED 3809s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-10-True] SKIPPED 3810s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_numba_vs_cython_apply[False-False-True-False-10-False] SKIPPED 3810s ../../../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 3810s ../../../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 3810s ../../../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 3810s ../../../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 3810s ../../../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 3810s ../../../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 3810s ../../../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 3810s ../../../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 3810s ../../../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 3810s ../../../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 3810s ../../../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 3810s ../../../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 3810s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3811s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3812s ../../../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 3813s ../../../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 3813s ../../../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 3813s ../../../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 3813s ../../../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 3813s ../../../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 3813s ../../../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 3813s ../../../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 3813s ../../../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 3813s ../../../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 3813s ../../../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 3813s ../../../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 3813s ../../../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 3813s ../../../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 3813s ../../../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 3814s ../../../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 3814s ../../../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 3816s ../../../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 3817s ../../../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 3818s ../../../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 3819s ../../../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 3820s ../../../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 3821s ../../../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 3821s ../../../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 3821s ../../../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 3821s ../../../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 3821s ../../../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 3822s ../../../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 3822s ../../../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 3822s ../../../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 3823s ../../../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 3823s ../../../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 3823s ../../../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 3824s ../../../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 3825s ../../../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 3826s ../../../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 3827s ../../../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 3829s ../../../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 3831s ../../../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 3832s ../../../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 3833s ../../../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 3833s ../../../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 3834s ../../../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 3834s ../../../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 3834s ../../../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 3834s ../../../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 3834s ../../../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 3835s ../../../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 3835s ../../../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 3836s ../../../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 3837s ../../../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 3838s ../../../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 3838s ../../../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 3838s ../../../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 3839s ../../../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 3840s ../../../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 3841s ../../../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 3841s ../../../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 3842s ../../../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 3842s ../../../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 3842s ../../../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 3843s ../../../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 3843s ../../../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 3843s ../../../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 3843s ../../../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 3843s ../../../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 3844s ../../../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 3844s ../../../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 3844s ../../../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 3844s ../../../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 3844s ../../../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 3845s ../../../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 3845s ../../../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 3845s ../../../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 3845s ../../../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 3845s ../../../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 3845s ../../../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 3845s ../../../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 3845s ../../../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 3845s ../../../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 3846s ../../../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 3846s ../../../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 3846s ../../../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 3846s ../../../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 3846s ../../../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 3846s ../../../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 3846s ../../../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 3846s ../../../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 3846s ../../../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 3846s ../../../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 3846s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3847s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3848s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3849s ../../../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 3850s ../../../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 3850s ../../../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 3850s ../../../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 3850s ../../../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 3850s ../../../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 3850s ../../../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 3850s ../../../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 3850s ../../../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 3850s ../../../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 3850s ../../../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 3850s ../../../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 3850s ../../../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 3851s ../../../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 3851s ../../../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 3851s ../../../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 3851s ../../../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 3851s ../../../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 3851s ../../../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 3851s ../../../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 3851s ../../../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 3852s ../../../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 3852s ../../../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 3852s ../../../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 3852s ../../../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 3852s ../../../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 3853s ../../../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 3853s ../../../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 3854s ../../../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 3854s ../../../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 3855s ../../../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 3855s ../../../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 3856s ../../../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 3856s ../../../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 3856s ../../../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 3856s ../../../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 3856s ../../../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 3856s ../../../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 3856s ../../../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 3856s ../../../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 3857s ../../../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 3857s ../../../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 3857s ../../../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 3858s ../../../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 3858s ../../../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 3858s ../../../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 3858s ../../../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 3859s ../../../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 3859s ../../../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 3859s ../../../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 3859s ../../../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 3859s ../../../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 3859s ../../../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 3860s ../../../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 3860s ../../../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 3860s ../../../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 3860s ../../../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 3861s ../../../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 3861s ../../../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 3861s ../../../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 3862s ../../../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 3862s ../../../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 3862s ../../../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 3862s ../../../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 3862s ../../../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 3863s ../../../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 3863s ../../../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 3863s ../../../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 3863s ../../../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 3864s ../../../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 3864s ../../../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 3865s ../../../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 3865s ../../../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 3865s ../../../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 3865s ../../../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 3865s ../../../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 3865s ../../../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 3865s ../../../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 3866s ../../../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 3866s ../../../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 3866s ../../../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 3866s ../../../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 3866s ../../../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 3866s ../../../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 3867s ../../../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 3867s ../../../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 3868s ../../../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 3868s ../../../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 3869s ../../../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 3870s ../../../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 3871s ../../../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 3872s ../../../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 3873s ../../../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 3873s ../../../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 3874s ../../../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 3876s ../../../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 3877s ../../../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 3880s ../../../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 3883s ../../../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 3885s ../../../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 3886s ../../../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 3888s ../../../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 3890s ../../../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 3891s ../../../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 3893s ../../../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 3895s ../../../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 3897s ../../../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 3900s ../../../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 3903s ../../../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 3906s ../../../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 3910s ../../../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 3912s ../../../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 3913s ../../../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 3915s ../../../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 3916s ../../../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 3918s ../../../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 3918s ../../../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 3919s ../../../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 3919s ../../../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 3920s ../../../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 3921s ../../../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 3923s ../../../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 3924s ../../../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 3927s ../../../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 3929s ../../../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 3931s ../../../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 3941s ../../../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 3941s ../../../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 3941s ../../../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 3941s ../../../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 3941s ../../../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 3941s ../../../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 3941s ../../../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 3941s ../../../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 3941s ../../../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 3941s ../../../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 3941s ../../../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 3942s ../../../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 3943s ../../../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 3944s ../../../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 3945s ../../../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 3946s ../../../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 3948s ../../../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 3949s ../../../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 3951s ../../../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 3952s ../../../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 3953s ../../../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 3954s ../../../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 3956s ../../../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 3958s ../../../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 3961s ../../../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 3964s ../../../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 3967s ../../../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 3969s ../../../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 3971s ../../../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 3974s ../../../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 3976s ../../../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 3977s ../../../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 3979s ../../../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 3980s ../../../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 3981s ../../../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 3982s ../../../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 3984s ../../../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 3985s ../../../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 3987s ../../../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 3988s ../../../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 3988s ../../../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 3989s ../../../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 3990s ../../../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 3990s ../../../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 3991s ../../../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 3991s ../../../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 3992s ../../../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 3993s ../../../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 3994s ../../../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 3996s ../../../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 3997s ../../../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 3997s ../../../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 3999s ../../../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 4000s ../../../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 4000s ../../../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 4002s ../../../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 4004s ../../../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 4005s ../../../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 4007s ../../../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 4008s ../../../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 4010s ../../../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 4012s ../../../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 4013s ../../../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 4013s ../../../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 4014s ../../../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 4015s ../../../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 4016s ../../../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 4016s ../../../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 4016s ../../../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 4016s ../../../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 4016s ../../../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 4016s ../../../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 4017s ../../../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 4018s ../../../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 4019s ../../../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 4020s ../../../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 4021s ../../../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 4022s ../../../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 4023s ../../../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 4024s ../../../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 4025s ../../../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 4025s ../../../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 4026s ../../../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 4026s ../../../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 4026s ../../../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 4026s ../../../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 4026s ../../../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 4026s ../../../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 4026s ../../../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 4026s ../../../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 4027s ../../../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 4027s ../../../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 4027s ../../../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 4027s ../../../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 4027s ../../../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 4027s ../../../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 4027s ../../../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 4027s ../../../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 4027s ../../../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 4027s ../../../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 4028s ../../../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 4028s ../../../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 4028s ../../../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 4028s ../../../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 4028s ../../../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 4028s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4029s ../../../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 4030s ../../../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 4030s ../../../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 4030s ../../../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 4030s ../../../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 4030s ../../../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 4030s ../../../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 4030s ../../../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 4030s ../../../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 4030s ../../../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 4030s ../../../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 4030s ../../../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 4030s ../../../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 4030s ../../../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 4030s ../../../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 4030s ../../../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 4031s ../../../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 4031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-None-True] SKIPPED 4031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-None-False] SKIPPED 4031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-1-True] SKIPPED 4031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-1-False] SKIPPED 4031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-2-True] SKIPPED 4031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-2-False] SKIPPED 4031s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-5-True] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-5-False] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-10-True] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-True-True-10-False] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-None-True] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-None-False] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-1-True] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-1-False] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-2-True] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-2-False] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-5-True] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-5-False] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-10-True] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_cache_apply[False-False-True-10-False] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-True-True-single-rolling-window_kwargs0] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-True-True-single-expanding-window_kwargs1] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-True-True-table-rolling-window_kwargs0] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-True-True-table-expanding-window_kwargs1] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-False-True-single-rolling-window_kwargs0] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-False-True-single-expanding-window_kwargs1] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-False-True-table-rolling-window_kwargs0] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_args[False-False-True-table-expanding-window_kwargs1] SKIPPED 4032s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEngine::test_dont_cache_engine_kwargs SKIPPED 4033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine[mean-None] SKIPPED 4033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine[mean-groupby] SKIPPED 4033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine[sum-None] SKIPPED 4033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine[sum-groupby] SKIPPED 4033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine_kwargs[mean-None] SKIPPED 4033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine_kwargs[mean-groupby] SKIPPED 4033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine_kwargs[sum-None] SKIPPED 4033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_invalid_engine_kwargs[sum-groupby] SKIPPED 4033s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-True-mean-None] SKIPPED 4034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-True-mean-groupby] SKIPPED 4034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-True-sum-None] SKIPPED 4034s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-True-sum-groupby] SKIPPED 4035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-False-mean-None] SKIPPED 4035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-False-mean-groupby] SKIPPED 4035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-False-sum-None] SKIPPED 4035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-True-False-sum-groupby] SKIPPED 4035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-True-mean-None] SKIPPED 4035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-True-mean-groupby] SKIPPED 4035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-True-sum-None] SKIPPED 4035s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-True-sum-groupby] SKIPPED 4036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-False-mean-None] SKIPPED 4036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-False-mean-groupby] SKIPPED 4036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-False-sum-None] SKIPPED 4036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-True-True-False-False-sum-groupby] SKIPPED 4036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-True-mean-None] SKIPPED 4036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-True-mean-groupby] SKIPPED 4036s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-True-sum-None] SKIPPED 4037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-True-sum-groupby] SKIPPED 4037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-False-mean-None] SKIPPED 4037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-False-mean-groupby] SKIPPED 4037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-False-sum-None] SKIPPED 4037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-True-False-sum-groupby] SKIPPED 4037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-True-mean-None] SKIPPED 4037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-True-mean-groupby] SKIPPED 4037s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-True-sum-None] SKIPPED 4038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-True-sum-groupby] SKIPPED 4038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-False-mean-None] SKIPPED 4038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-False-mean-groupby] SKIPPED 4038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-False-sum-None] SKIPPED 4038s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba[False-False-True-False-False-sum-groupby] SKIPPED 4039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-True-True-True-None] SKIPPED 4039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-True-True-True-groupby] SKIPPED 4039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-True-True-False-None] SKIPPED 4039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-True-True-False-groupby] SKIPPED 4039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-False-True-True-None] SKIPPED 4039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-False-True-True-groupby] SKIPPED 4039s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-False-True-False-None] SKIPPED 4040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::TestEWM::test_cython_vs_numba_times[False-False-True-False-groupby] SKIPPED 4040s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::test_use_global_config SKIPPED 4041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py::test_invalid_kwargs_nopython SKIPPED 4041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_cov PASSED 4041s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr PASSED 4042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_pairwise_cov_corr[cov] PASSED 4042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_pairwise_cov_corr[corr] PASSED 4042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_flex_binary_frame[corr] PASSED 4042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_flex_binary_frame[cov] PASSED 4042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_with_zero_variance[0] PASSED 4042s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_with_zero_variance[1] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_with_zero_variance[2] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_with_zero_variance[3] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_with_zero_variance[4] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_with_zero_variance[5] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_with_zero_variance[6] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_corr_sanity PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_cov_diff_length PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_corr_diff_length PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_functions_window_non_shrinkage_binary[0] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_rolling_functions_window_non_shrinkage_binary[1] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_moment_functions_zero_length_pairwise[0] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::test_moment_functions_zero_length_pairwise[1] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames0-0] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames0-1] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames1-0] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames1-1] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames2-0] PASSED 4043s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames2-1] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames3-0] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames3-1] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames4-0] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames4-1] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames5-0] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames5-1] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames6-0] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames6-1] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames7-0] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames7-1] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames8-0] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_flex[pairwise_frames8-1] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames0-0] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames0-1] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames0-2] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames0-3] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames0-4] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames0-5] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames1-0] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames1-1] PASSED 4044s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames1-2] PASSED 4045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames1-3] PASSED 4045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames1-4] PASSED 4045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames1-5] PASSED 4045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames2-0] PASSED 4045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames2-1] PASSED 4045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames2-2] PASSED 4045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames2-3] PASSED 4045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames2-4] PASSED 4045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames2-5] PASSED 4045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames3-0] PASSED 4045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames3-1] PASSED 4045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames3-2] PASSED 4045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames3-3] PASSED 4045s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames3-4] PASSED 4046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames3-5] PASSED 4046s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames4-0] PASSED 4048s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames4-1] PASSED 4049s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames4-2] PASSED 4051s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames4-3] PASSED 4052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames4-4] PASSED 4052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames4-5] PASSED 4052s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames5-0] PASSED 4053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames5-1] PASSED 4053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames5-2] PASSED 4053s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames5-3] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames5-4] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames5-5] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames6-0] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames6-1] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames6-2] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames6-3] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames6-4] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames6-5] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames7-0] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames7-1] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames7-2] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames7-3] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames7-4] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames7-5] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames8-0] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames8-1] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames8-2] PASSED 4054s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames8-3] PASSED 4055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames8-4] PASSED 4055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_self[pairwise_frames8-5] PASSED 4055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames0-0] PASSED 4055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames0-1] PASSED 4055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames0-2] PASSED 4055s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames0-3] PASSED 4056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames0-4] PASSED 4056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames0-5] PASSED 4056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames1-0] PASSED 4056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames1-1] PASSED 4056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames1-2] PASSED 4056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames1-3] PASSED 4056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames1-4] PASSED 4056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames1-5] PASSED 4056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames2-0] PASSED 4056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames2-1] PASSED 4056s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames2-2] PASSED 4057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames2-3] PASSED 4057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames2-4] PASSED 4057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames2-5] PASSED 4057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames3-0] PASSED 4057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames3-1] PASSED 4057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames3-2] PASSED 4057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames3-3] PASSED 4057s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames3-4] PASSED 4058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames3-5] PASSED 4058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames4-0] PASSED 4058s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames4-1] PASSED 4059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames4-2] PASSED 4059s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames4-3] PASSED 4060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames4-4] PASSED 4060s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames4-5] PASSED 4061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames5-0] PASSED 4061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames5-1] PASSED 4061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames5-2] PASSED 4061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames5-3] PASSED 4061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames5-4] PASSED 4061s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames5-5] PASSED 4062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames6-0] PASSED 4062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames6-1] PASSED 4062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames6-2] PASSED 4062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames6-3] PASSED 4062s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames6-4] PASSED 4063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames6-5] PASSED 4063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames7-0] PASSED 4063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames7-1] PASSED 4063s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames7-2] PASSED 4064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames7-3] PASSED 4064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames7-4] PASSED 4064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames7-5] PASSED 4064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames8-0] PASSED 4064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames8-1] PASSED 4064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames8-2] PASSED 4064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames8-3] PASSED 4064s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames8-4] PASSED 4065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_self[pairwise_frames8-5] PASSED 4065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames0-0] PASSED 4065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames0-1] PASSED 4065s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames0-2] PASSED 4066s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames0-3] XPASS 4067s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames0-4] PASSED 4069s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames0-5] PASSED 4071s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames1-0] PASSED 4075s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames1-1] PASSED 4079s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames1-2] PASSED 4083s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames1-3] XPASS 4085s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames1-4] PASSED 4086s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames1-5] PASSED 4087s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames2-0] PASSED 4089s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames2-1] PASSED 4091s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames2-2] PASSED 4094s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames2-3] XPASS 4098s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames2-4] PASSED 4100s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames2-5] PASSED 4103s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames3-0] PASSED 4104s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames3-1] PASSED 4106s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames3-2] PASSED 4109s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames3-3] XPASS 4112s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames3-4] PASSED 4115s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames3-5] PASSED 4120s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames4-0] PASSED 4125s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames4-1] PASSED 4129s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames4-2] PASSED 4131s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames4-3] XPASS 4133s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames4-4] PASSED 4134s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames4-5] PASSED 4136s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames5-0] PASSED 4139s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames5-1] PASSED 4142s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames5-2] PASSED 4147s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames5-3] XPASS 4151s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames5-4] PASSED 4155s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames5-5] PASSED 4158s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames6-0] PASSED 4160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames6-1] PASSED 4160s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames6-2] PASSED 4161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames6-3] XPASS 4161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames6-4] PASSED 4161s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames6-5] PASSED 4162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames7-0] PASSED 4162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames7-1] PASSED 4162s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames7-2] PASSED 4163s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames7-3] XPASS 4165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames7-4] PASSED 4165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames7-5] PASSED 4165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames8-0] PASSED 4165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames8-1] PASSED 4165s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames8-2] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames8-3] XPASS 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames8-4] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_other[pairwise_frames8-5] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames0-0] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames0-1] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames0-2] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames0-3] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames0-4] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames0-5] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames1-0] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames1-1] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames1-2] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames1-3] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames1-4] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames1-5] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames2-0] PASSED 4166s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames2-1] PASSED 4167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames2-2] PASSED 4167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames2-3] PASSED 4167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames2-4] PASSED 4167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames2-5] PASSED 4167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames3-0] PASSED 4167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames3-1] PASSED 4167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames3-2] PASSED 4167s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames3-3] PASSED 4168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames3-4] PASSED 4168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames3-5] PASSED 4168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames4-0] PASSED 4168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames4-1] PASSED 4168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames4-2] PASSED 4168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames4-3] PASSED 4168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames4-4] PASSED 4168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames4-5] PASSED 4168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames5-0] PASSED 4168s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames5-1] PASSED 4169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames5-2] PASSED 4169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames5-3] PASSED 4169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames5-4] PASSED 4169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames5-5] PASSED 4169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames6-0] PASSED 4169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames6-1] PASSED 4169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames6-2] PASSED 4169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames6-3] PASSED 4169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames6-4] PASSED 4169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames6-5] PASSED 4169s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames7-0] PASSED 4170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames7-1] PASSED 4170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames7-2] PASSED 4170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames7-3] PASSED 4170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames7-4] PASSED 4170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames7-5] PASSED 4170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames8-0] PASSED 4170s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames8-1] PASSED 4171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames8-2] PASSED 4171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames8-3] PASSED 4171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames8-4] PASSED 4171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_no_pairwise_with_other[pairwise_frames8-5] PASSED 4171s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames0-0] PASSED 4172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames0-1] PASSED 4172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames0-2] PASSED 4172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames0-3] PASSED 4172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames0-4] PASSED 4172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames0-5] PASSED 4172s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames1-0] PASSED 4173s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames1-1] PASSED 4174s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames1-2] PASSED 4175s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames1-3] PASSED 4177s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames1-4] PASSED 4179s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames1-5] PASSED 4180s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames2-0] PASSED 4180s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames2-1] PASSED 4181s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames2-2] PASSED 4182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames2-3] PASSED 4182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames2-4] PASSED 4182s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames2-5] PASSED 4183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames3-0] PASSED 4183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames3-1] PASSED 4183s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames3-2] PASSED 4184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames3-3] PASSED 4184s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames3-4] PASSED 4185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames3-5] PASSED 4185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames4-0] PASSED 4185s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames4-1] PASSED 4186s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames4-2] PASSED 4189s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames4-3] PASSED 4193s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames4-4] PASSED 4195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames4-5] PASSED 4195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames5-0] PASSED 4195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames5-1] PASSED 4195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames5-2] PASSED 4195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames5-3] PASSED 4195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames5-4] PASSED 4195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames5-5] PASSED 4195s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames6-0] PASSED 4196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames6-1] PASSED 4196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames6-2] PASSED 4196s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames6-3] PASSED 4197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames6-4] PASSED 4197s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames6-5] PASSED 4198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames7-0] PASSED 4198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames7-1] PASSED 4198s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames7-2] PASSED 4199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames7-3] PASSED 4199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames7-4] PASSED 4199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames7-5] PASSED 4199s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames8-0] PASSED 4200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames8-1] PASSED 4200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames8-2] PASSED 4200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames8-3] PASSED 4200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames8-4] PASSED 4200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_pairwise_with_series[pairwise_frames8-5] PASSED 4200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_corr_freq_memory_error PASSED 4200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_cov_mulittindex PASSED 4200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_pairwise.py::TestPairwise::test_multindex_columns_pairwise_func PASSED 4200s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_doc_string PASSED 4201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor[DataFrame] PASSED 4201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor[Series] PASSED 4201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_constructor[DataFrame-2.0] PASSED 4201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_constructor[DataFrame-foo] PASSED 4201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_constructor[DataFrame-w2] PASSED 4201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_constructor[Series-2.0] PASSED 4201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_constructor[Series-foo] PASSED 4201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_constructor[Series-w2] PASSED 4201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_freq_window_not_implemented[window0] PASSED 4201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_freq_window_not_implemented[window1] PASSED 4201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_freq_window_not_implemented[3D] PASSED 4201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_freq_window_not_implemented[window3] PASSED 4201s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_step_not_implemented_for_cov_corr[cov] PASSED 4202s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_step_not_implemented_for_cov_corr[corr] PASSED 4203s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_with_timedelta_window[window0] PASSED 4204s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_with_timedelta_window[window1] PASSED 4205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_timedelta_window_and_minperiods[True-window0] PASSED 4205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_timedelta_window_and_minperiods[True-window1] PASSED 4205s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_timedelta_window_and_minperiods[True-3D] PASSED 4206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_timedelta_window_and_minperiods[False-window0] PASSED 4206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_timedelta_window_and_minperiods[False-window1] PASSED 4206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_constructor_timedelta_window_and_minperiods[False-3D] PASSED 4206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-sum] PASSED 4206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-mean] PASSED 4206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-median] PASSED 4206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-max] PASSED 4206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-min] PASSED 4206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-var] PASSED 4206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-std] PASSED 4206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-kurt] PASSED 4206s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-skew] PASSED 4207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-count] PASSED 4207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[left-sem] PASSED 4207s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-sum] PASSED 4208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-mean] PASSED 4208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-median] PASSED 4208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-max] PASSED 4208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-min] PASSED 4208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-var] PASSED 4208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-std] PASSED 4208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-kurt] PASSED 4208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-skew] PASSED 4208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-count] PASSED 4208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[right-sem] PASSED 4208s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-sum] PASSED 4209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-mean] PASSED 4209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-median] PASSED 4209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-max] PASSED 4209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-min] PASSED 4209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-var] PASSED 4209s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-std] PASSED 4210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-kurt] PASSED 4210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-skew] PASSED 4210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-count] PASSED 4210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[both-sem] PASSED 4210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-sum] PASSED 4210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-mean] PASSED 4210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-median] PASSED 4210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-max] PASSED 4210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-min] PASSED 4210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-var] PASSED 4210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-std] PASSED 4210s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-kurt] PASSED 4211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-skew] PASSED 4211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-count] PASSED 4211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed[neither-sem] PASSED 4211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sum-both-window_selections0] PASSED 4211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sum-left-window_selections1] PASSED 4211s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sum-right-window_selections2] PASSED 4212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sum-neither-window_selections3] PASSED 4212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[mean-both-window_selections0] PASSED 4212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[mean-left-window_selections1] PASSED 4212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[mean-right-window_selections2] PASSED 4212s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[mean-neither-window_selections3] PASSED 4213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[median-both-window_selections0] PASSED 4213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[median-left-window_selections1] PASSED 4213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[median-right-window_selections2] PASSED 4213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[median-neither-window_selections3] PASSED 4213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[max-both-window_selections0] PASSED 4213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[max-left-window_selections1] PASSED 4213s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[max-right-window_selections2] PASSED 4214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[max-neither-window_selections3] PASSED 4214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[min-both-window_selections0] PASSED 4214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[min-left-window_selections1] PASSED 4214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[min-right-window_selections2] PASSED 4214s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[min-neither-window_selections3] PASSED 4215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[var-both-window_selections0] PASSED 4215s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[var-left-window_selections1] PASSED 4217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[var-right-window_selections2] PASSED 4217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[var-neither-window_selections3] PASSED 4217s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[std-both-window_selections0] PASSED 4218s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[std-left-window_selections1] PASSED 4218s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[std-right-window_selections2] PASSED 4218s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[std-neither-window_selections3] PASSED 4219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[kurt-both-window_selections0] PASSED 4219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[kurt-left-window_selections1] PASSED 4219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[kurt-right-window_selections2] PASSED 4219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[kurt-neither-window_selections3] PASSED 4219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[skew-both-window_selections0] PASSED 4219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[skew-left-window_selections1] PASSED 4219s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[skew-right-window_selections2] PASSED 4220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[skew-neither-window_selections3] PASSED 4220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[count-both-window_selections0] PASSED 4220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[count-left-window_selections1] PASSED 4220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[count-right-window_selections2] PASSED 4220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[count-neither-window_selections3] PASSED 4220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sem-both-window_selections0] PASSED 4220s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sem-left-window_selections1] PASSED 4221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sem-right-window_selections2] PASSED 4221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_selections[sem-neither-window_selections3] PASSED 4221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-3s-right-expected0] PASSED 4221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-3s-both-expected1] PASSED 4221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-3s-left-expected2] PASSED 4221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-3s-neither-expected3] PASSED 4221s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-2s-right-expected4] PASSED 4222s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-2s-both-expected5] PASSED 4222s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-2s-left-expected6] PASSED 4222s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[DataFrame-2s-neither-expected7] PASSED 4222s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-3s-right-expected0] PASSED 4223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-3s-both-expected1] PASSED 4223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-3s-left-expected2] PASSED 4223s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-3s-neither-expected3] PASSED 4224s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-2s-right-expected4] PASSED 4225s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-2s-both-expected5] PASSED 4225s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-2s-left-expected6] PASSED 4225s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_centered_offset_covers_all[Series-2s-neither-expected7] PASSED 4226s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[DataFrame-2D-right-expected0] PASSED 4226s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[DataFrame-2D-left-expected1] PASSED 4228s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[DataFrame-2D-both-expected2] PASSED 4231s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[DataFrame-2D-neither-expected3] PASSED 4232s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[Series-2D-right-expected0] PASSED 4233s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[Series-2D-left-expected1] PASSED 4234s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[Series-2D-both-expected2] PASSED 4234s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_datetimelike_nonunique_index_centering[Series-2D-neither-expected3] PASSED 4235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_even_number_window_alignment PASSED 4235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[True-None] PASSED 4235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[True-1] PASSED 4235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[True-2] PASSED 4235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[True-5] PASSED 4235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[True-10] PASSED 4235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[False-None] PASSED 4235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[False-1] PASSED 4235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[False-2] PASSED 4235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[False-5] PASSED 4235s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_fixed_binary_col[False-10] PASSED 4236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[sum-neither] PASSED 4236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[sum-left] PASSED 4236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[mean-neither] PASSED 4236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[mean-left] PASSED 4236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[median-neither] PASSED 4236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[median-left] PASSED 4236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[max-neither] PASSED 4236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[max-left] PASSED 4236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[min-neither] PASSED 4236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[min-left] PASSED 4236s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[var-neither] PASSED 4237s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[var-left] PASSED 4237s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[std-neither] PASSED 4237s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[std-left] PASSED 4237s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[kurt-neither] PASSED 4237s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[kurt-left] PASSED 4237s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[skew-neither] PASSED 4238s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[skew-left] PASSED 4238s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[count-neither] PASSED 4238s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[count-left] PASSED 4238s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[sem-neither] PASSED 4238s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_empty[sem-left] PASSED 4238s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_one_entry[min] PASSED 4238s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_one_entry[max] PASSED 4238s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_one_entry_groupby[min] PASSED 4238s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_one_entry_groupby[max] PASSED 4238s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-right-expected0-int] PASSED 4239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-right-expected0-float] PASSED 4239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-both-expected1-int] PASSED 4239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-both-expected1-float] PASSED 4239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-neither-expected2-int] PASSED 4239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-neither-expected2-float] PASSED 4239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-left-expected3-int] PASSED 4239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[min-left-expected3-float] PASSED 4239s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-right-expected4-int] PASSED 4240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-right-expected4-float] PASSED 4240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-both-expected5-int] PASSED 4240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-both-expected5-float] PASSED 4240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-neither-expected6-int] PASSED 4240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-neither-expected6-float] PASSED 4240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-left-expected7-int] PASSED 4240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_datetime[max-left-expected7-float] PASSED 4240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_uneven PASSED 4240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[min-right-expected0] PASSED 4240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[min-both-expected1] PASSED 4240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[min-neither-expected2] PASSED 4240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[min-left-expected3] PASSED 4240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[max-right-expected4] PASSED 4240s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[max-both-expected5] PASSED 4241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[max-neither-expected6] PASSED 4241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_min_max_minp[max-left-expected7] PASSED 4241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_median_quantile[right-expected0] PASSED 4241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_median_quantile[both-expected1] PASSED 4241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_median_quantile[neither-expected2] PASSED 4241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_closed_median_quantile[left-expected3] PASSED 4241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::tests_empty_df_rolling[1s] PASSED 4241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::tests_empty_df_rolling[1] PASSED 4241s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_empty_window_median_quantile PASSED 4242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_missing_minp_zero PASSED 4242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_missing_minp_zero_variable PASSED 4242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_multi_index_names PASSED 4242s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_sum[axis=0] PASSED 4243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_sum[axis=1] PASSED 4243s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_sum[axis='index'] PASSED 4244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_sum[axis='columns'] PASSED 4244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_count[axis=0] PASSED 4244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_count[axis=1] PASSED 4244s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_count[axis='index'] PASSED 4245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_count[axis='columns'] PASSED 4245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_readonly_array PASSED 4245s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-None] PASSED 4246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'UTC'] PASSED 4246s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'US/Eastern'] PASSED 4247s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'Asia/Tokyo'] PASSED 4248s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'dateutil/US/Pacific'] PASSED 4249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'dateutil/Asia/Singapore'] PASSED 4249s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'+01:15'] PASSED 4250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'-02:15'] PASSED 4250s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'UTC+01:15'] PASSED 4251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-'UTC-02:15'] PASSED 4251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-tzutc()] PASSED 4251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-tzlocal()] PASSED 4251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-pytz.FixedOffset(300)] PASSED 4251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-] PASSED 4251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-pytz.FixedOffset(-300)] PASSED 4251s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-datetime.timezone.utc] PASSED 4252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-datetime.timezone(datetime.timedelta(seconds=3600))] PASSED 4252s ../../../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 4252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-zoneinfo.ZoneInfo(key='US/Pacific')] PASSED 4252s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=0-zoneinfo.ZoneInfo(key='UTC')] PASSED 4253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-None] PASSED 4253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'UTC'] PASSED 4253s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'US/Eastern'] PASSED 4254s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'Asia/Tokyo'] PASSED 4255s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'dateutil/US/Pacific'] PASSED 4256s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'dateutil/Asia/Singapore'] PASSED 4257s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'+01:15'] PASSED 4261s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'-02:15'] PASSED 4265s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'UTC+01:15'] PASSED 4267s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-'UTC-02:15'] PASSED 4268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-tzutc()] PASSED 4268s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-tzlocal()] PASSED 4269s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-pytz.FixedOffset(300)] PASSED 4270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-] PASSED 4270s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-pytz.FixedOffset(-300)] PASSED 4271s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-datetime.timezone.utc] PASSED 4272s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-datetime.timezone(datetime.timedelta(seconds=3600))] PASSED 4273s ../../../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 4273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-zoneinfo.ZoneInfo(key='US/Pacific')] PASSED 4273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis=1-zoneinfo.ZoneInfo(key='UTC')] PASSED 4273s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-None] PASSED 4274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'UTC'] PASSED 4274s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'US/Eastern'] PASSED 4275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'Asia/Tokyo'] PASSED 4275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'dateutil/US/Pacific'] PASSED 4275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'dateutil/Asia/Singapore'] PASSED 4275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'+01:15'] PASSED 4275s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'-02:15'] PASSED 4276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'UTC+01:15'] PASSED 4276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-'UTC-02:15'] PASSED 4276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-tzutc()] PASSED 4276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-tzlocal()] PASSED 4276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-pytz.FixedOffset(300)] PASSED 4276s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-] PASSED 4277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-pytz.FixedOffset(-300)] PASSED 4277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-datetime.timezone.utc] PASSED 4277s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-datetime.timezone(datetime.timedelta(seconds=3600))] PASSED 4278s ../../../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 4278s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-zoneinfo.ZoneInfo(key='US/Pacific')] PASSED 4279s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='index'-zoneinfo.ZoneInfo(key='UTC')] PASSED 4279s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-None] PASSED 4279s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'UTC'] PASSED 4279s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'US/Eastern'] PASSED 4279s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'Asia/Tokyo'] PASSED 4279s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'dateutil/US/Pacific'] PASSED 4280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'dateutil/Asia/Singapore'] PASSED 4280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'+01:15'] PASSED 4280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'-02:15'] PASSED 4280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'UTC+01:15'] PASSED 4280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-'UTC-02:15'] PASSED 4280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-tzutc()] PASSED 4280s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-tzlocal()] PASSED 4281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-pytz.FixedOffset(300)] PASSED 4281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-] PASSED 4281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-pytz.FixedOffset(-300)] PASSED 4281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-datetime.timezone.utc] PASSED 4281s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-datetime.timezone(datetime.timedelta(seconds=3600))] PASSED 4281s ../../../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 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-zoneinfo.ZoneInfo(key='US/Pacific')] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_datetime[axis='columns'-zoneinfo.ZoneInfo(key='UTC')] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_window_as_string[True] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_window_as_string[False] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_min_periods1 PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_count_with_min_periods[DataFrame] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_count_with_min_periods[Series] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_count_default_min_periods_with_null_values[DataFrame] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_count_default_min_periods_with_null_values[Series] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df0-expected0-3-None] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df1-expected1-2-1] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df2-expected2-2-2] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df3-expected3-1-1] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df4-expected4-1-0] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df5-expected5-2-None] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df6-expected6-2-1] PASSED 4282s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df7-expected7-2-None] PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_dataframe[df8-expected8-3-2] PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_on_dataframe[expected0-2D] PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_on_dataframe[expected1-3D] PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_on_dataframe[expected2-1D] PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_on_dataframe_unordered PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser0-expected0-3-None] PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser1-expected1-3-1] PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser2-expected2-2-1] PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser3-expected3-2-2] PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser4-expected4-1-0] PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser5-expected5-1-1] PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser6-expected6-2-0] PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_series[ser7-expected7-2-1] PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_datetime[expected0-expected_index0-1D] PASSED 4283s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_datetime[expected1-expected_index1-2D] PASSED 4284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_iter_rolling_datetime[expected2-expected_index2-3D] PASSED 4284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_positional_argument[True-grouping0-_index0] PASSED 4284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_positional_argument[True-grouping1-_index1] PASSED 4284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_positional_argument[False-grouping0-_index0] PASSED 4284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_positional_argument[False-grouping1-_index1] PASSED 4284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_numerical_accuracy_kahan_mean[0.0] PASSED 4284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_numerical_accuracy_kahan_mean[2.0] PASSED 4284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_numerical_accuracy_kahan_sum PASSED 4284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_numerical_accuracy_jump PASSED 4284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_numerical_accuracy_small_values PASSED 4284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_numerical_too_large_numbers PASSED 4284s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mixed_dtypes_axis_1[sum-2.0] PASSED 4285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mixed_dtypes_axis_1[max-1.0] PASSED 4285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mixed_dtypes_axis_1[min-1.0] PASSED 4285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mixed_dtypes_axis_1[mean-1.0] PASSED 4285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mixed_dtypes_axis_1[median-1.0] PASSED 4285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_one_with_nan PASSED 4285s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_1_non_numeric_dtypes[test] PASSED 4286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_1_non_numeric_dtypes[value1] PASSED 4286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_axis_1_non_numeric_dtypes[value2] PASSED 4286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_on_df_transposed PASSED 4286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_period_index[min-values0-index0-2T] PASSED 4286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_period_index[min-values0-index1-1h] PASSED 4286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_period_index[max-values1-index0-2T] PASSED 4286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_period_index[max-values1-index1-1h] PASSED 4286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_period_index[sum-values2-index0-2T] PASSED 4286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_period_index[sum-values2-index1-1h] PASSED 4286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_sem[DataFrame] PASSED 4286s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_sem[Series] PASSED 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_numerical_issues[var-1-values0] XPASS 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_numerical_issues[std-1-values1] XPASS 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_numerical_issues[var-2-values2] XPASS 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_numerical_issues[std-2-values3] XPASS 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_timeoffset_as_window_parameter_for_corr PASSED 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices[var] PASSED 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices[sum] PASSED 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices[mean] PASSED 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices[skew] PASSED 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices[kurt] PASSED 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices[min] PASSED 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices[max] PASSED 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-2s-right-expected0] PASSED 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-2s-left-expected1] PASSED 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-2s-both-expected2] PASSED 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-2s-neither-expected3] PASSED 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-3s-right-expected4] PASSED 4287s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-3s-left-expected5] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-3s-both-expected6] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[DataFrame-3s-neither-expected7] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-2s-right-expected0] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-2s-left-expected1] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-2s-both-expected2] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-2s-neither-expected3] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-3s-right-expected4] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-3s-left-expected5] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-3s-both-expected6] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_decreasing_indices_centered[Series-3s-neither-expected7] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[left-DataFrame-1ns-expected0] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[left-DataFrame-3ns-expected1] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[left-Series-1ns-expected0] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[left-Series-3ns-expected1] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[right-DataFrame-1ns-expected0] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[right-DataFrame-3ns-expected1] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[right-Series-1ns-expected0] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[right-Series-3ns-expected1] PASSED 4288s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[both-DataFrame-1ns-expected0] PASSED 4289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[both-DataFrame-3ns-expected1] PASSED 4289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[both-Series-1ns-expected0] PASSED 4289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[both-Series-3ns-expected1] PASSED 4289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[neither-DataFrame-1ns-expected0] PASSED 4289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[neither-DataFrame-3ns-expected1] PASSED 4289s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[neither-Series-1ns-expected0] PASSED 4290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_center_nanosecond_resolution[neither-Series-3ns-expected1] PASSED 4290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_non_monotonic[var-expected0] PASSED 4290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_non_monotonic[mean-expected1] PASSED 4290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_non_monotonic[sum-expected2] PASSED 4290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_non_monotonic[skew-expected3] PASSED 4290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_non_monotonic[kurt-expected4] PASSED 4290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_corr_timedelta_index[index0-2] PASSED 4290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_corr_timedelta_index[index1-2D] PASSED 4290s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_groupby_rolling_nan_included PASSED 4291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_skew_kurt_numerical_stability[skew] PASSED 4291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_skew_kurt_numerical_stability[kurt] PASSED 4291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_skew_kurt_large_value_range[skew-values0] PASSED 4291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_skew_kurt_large_value_range[kurt-values1] PASSED 4291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_method PASSED 4291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_descending_date_order_with_offset[DataFrame-1] PASSED 4291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_descending_date_order_with_offset[DataFrame-1d] PASSED 4291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_descending_date_order_with_offset[Series-1] PASSED 4291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_descending_date_order_with_offset[Series-1d] PASSED 4291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_floating_artifact_precision PASSED 4291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_std_small_values PASSED 4291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mean_all_nan_window_floating_artifacts[1-exp_values0] PASSED 4291s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mean_all_nan_window_floating_artifacts[2-exp_values1] PASSED 4292s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_sum_all_nan_window_floating_artifacts PASSED 4292s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_zero_window PASSED 4292s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_float_dtype[float] PASSED 4292s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_float_dtype[float32] PASSED 4292s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_float_dtype[float64] PASSED 4292s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_numeric_dtypes PASSED 4292s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-min-1] PASSED 4293s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-min-3] PASSED 4293s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-min-10] PASSED 4293s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-min-20] PASSED 4293s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-max-1] PASSED 4293s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-max-3] PASSED 4293s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-max-10] PASSED 4294s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-max-20] PASSED 4294s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-average-1] PASSED 4294s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-average-3] PASSED 4295s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-average-10] PASSED 4295s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-True-average-20] PASSED 4295s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-min-1] PASSED 4295s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-min-3] PASSED 4295s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-min-10] PASSED 4295s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-min-20] PASSED 4295s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-max-1] PASSED 4295s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-max-3] PASSED 4296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-max-10] PASSED 4296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-max-20] PASSED 4296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-average-1] PASSED 4296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-average-3] PASSED 4296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-average-10] PASSED 4296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-True-False-average-20] PASSED 4296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-min-1] PASSED 4296s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-min-3] PASSED 4297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-min-10] PASSED 4297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-min-20] PASSED 4297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-max-1] PASSED 4297s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-max-3] PASSED 4298s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-max-10] PASSED 4299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-max-20] PASSED 4299s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-average-1] PASSED 4300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-average-3] PASSED 4300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-average-10] PASSED 4300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-True-average-20] PASSED 4300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-min-1] PASSED 4300s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-min-3] PASSED 4301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-min-10] PASSED 4301s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-min-20] PASSED 4302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-max-1] PASSED 4302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-max-3] PASSED 4302s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-max-10] PASSED 4304s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-max-20] PASSED 4305s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-average-1] PASSED 4306s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-average-3] PASSED 4307s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-average-10] PASSED 4308s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[default-False-False-average-20] PASSED 4309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-min-1] PASSED 4309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-min-3] PASSED 4309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-min-10] PASSED 4309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-min-20] PASSED 4309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-max-1] PASSED 4309s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-max-3] PASSED 4311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-max-10] PASSED 4311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-max-20] PASSED 4311s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-average-1] PASSED 4312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-average-3] PASSED 4312s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-average-10] PASSED 4313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-True-average-20] PASSED 4313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-min-1] PASSED 4313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-min-3] PASSED 4313s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-min-10] PASSED 4314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-min-20] PASSED 4314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-max-1] PASSED 4314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-max-3] PASSED 4314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-max-10] PASSED 4314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-max-20] PASSED 4314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-average-1] PASSED 4314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-average-3] PASSED 4314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-average-10] PASSED 4314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-True-False-average-20] PASSED 4314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-min-1] PASSED 4314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-min-3] PASSED 4314s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-min-10] PASSED 4315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-min-20] PASSED 4315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-max-1] PASSED 4315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-max-3] PASSED 4315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-max-10] PASSED 4315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-max-20] PASSED 4315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-average-1] PASSED 4315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-average-3] PASSED 4315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-average-10] PASSED 4315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-True-average-20] PASSED 4315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-min-1] PASSED 4315s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-min-3] PASSED 4316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-min-10] PASSED 4316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-min-20] PASSED 4316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-max-1] PASSED 4316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-max-3] PASSED 4316s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-max-10] PASSED 4317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-max-20] PASSED 4317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-average-1] PASSED 4317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-average-3] PASSED 4317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-average-10] PASSED 4317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[duplicates-False-False-average-20] PASSED 4317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-min-1] PASSED 4317s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-min-3] PASSED 4318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-min-10] PASSED 4318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-min-20] PASSED 4318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-max-1] PASSED 4318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-max-3] PASSED 4318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-max-10] PASSED 4318s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-max-20] PASSED 4319s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-average-1] PASSED 4319s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-average-3] PASSED 4319s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-average-10] PASSED 4319s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-True-average-20] PASSED 4320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-min-1] PASSED 4320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-min-3] PASSED 4320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-min-10] PASSED 4320s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-min-20] PASSED 4321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-max-1] PASSED 4321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-max-3] PASSED 4321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-max-10] PASSED 4321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-max-20] PASSED 4321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-average-1] PASSED 4321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-average-3] PASSED 4321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-average-10] PASSED 4321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-True-False-average-20] PASSED 4321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-min-1] PASSED 4321s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-min-3] PASSED 4322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-min-10] PASSED 4322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-min-20] PASSED 4322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-max-1] PASSED 4322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-max-3] PASSED 4322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-max-10] PASSED 4322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-max-20] PASSED 4322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-average-1] PASSED 4322s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-average-3] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-average-10] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-True-average-20] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-min-1] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-min-3] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-min-10] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-min-20] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-max-1] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-max-3] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-max-10] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-max-20] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-average-1] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-average-3] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-average-10] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rank[nans-False-False-average-20] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_np_percentile PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-linear-0.0] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-linear-0.1] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-linear-0.45] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-linear-0.5] PASSED 4323s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-linear-1] PASSED 4324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-lower-0.0] PASSED 4324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-lower-0.1] PASSED 4324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-lower-0.45] PASSED 4324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-lower-0.5] PASSED 4324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-lower-1] PASSED 4324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-higher-0.0] PASSED 4324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-higher-0.1] PASSED 4324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-higher-0.45] PASSED 4324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-higher-0.5] PASSED 4324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-higher-1] PASSED 4324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-nearest-0.0] PASSED 4324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-nearest-0.1] PASSED 4324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-nearest-0.45] PASSED 4324s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-nearest-0.5] PASSED 4325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-nearest-1] PASSED 4325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-midpoint-0.0] PASSED 4325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-midpoint-0.1] PASSED 4325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-midpoint-0.45] PASSED 4325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-midpoint-0.5] PASSED 4325s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data0-midpoint-1] PASSED 4326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-linear-0.0] PASSED 4326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-linear-0.1] PASSED 4326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-linear-0.45] PASSED 4326s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-linear-0.5] PASSED 4327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-linear-1] PASSED 4327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-lower-0.0] PASSED 4327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-lower-0.1] PASSED 4327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-lower-0.45] PASSED 4327s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-lower-0.5] PASSED 4328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-lower-1] PASSED 4328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-higher-0.0] PASSED 4328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-higher-0.1] PASSED 4328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-higher-0.45] PASSED 4328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-higher-0.5] PASSED 4328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-higher-1] PASSED 4328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-nearest-0.0] PASSED 4328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-nearest-0.1] PASSED 4328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-nearest-0.45] PASSED 4328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-nearest-0.5] PASSED 4328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-nearest-1] PASSED 4328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-midpoint-0.0] PASSED 4328s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-midpoint-0.1] PASSED 4329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-midpoint-0.45] PASSED 4329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-midpoint-0.5] PASSED 4329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data1-midpoint-1] PASSED 4329s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-linear-0.0] PASSED 4330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-linear-0.1] PASSED 4330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-linear-0.45] PASSED 4330s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-linear-0.5] PASSED 4331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-linear-1] PASSED 4331s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-lower-0.0] PASSED 4332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-lower-0.1] PASSED 4332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-lower-0.45] PASSED 4332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-lower-0.5] PASSED 4332s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-lower-1] PASSED 4333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-higher-0.0] PASSED 4333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-higher-0.1] PASSED 4333s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-higher-0.45] PASSED 4334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-higher-0.5] PASSED 4334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-higher-1] PASSED 4334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-nearest-0.0] PASSED 4334s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-nearest-0.1] PASSED 4335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-nearest-0.45] PASSED 4335s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-nearest-0.5] PASSED 4336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-nearest-1] PASSED 4336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-midpoint-0.0] PASSED 4336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-midpoint-0.1] PASSED 4336s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-midpoint-0.45] PASSED 4337s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-midpoint-0.5] PASSED 4338s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data2-midpoint-1] PASSED 4339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-linear-0.0] PASSED 4339s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-linear-0.1] PASSED 4340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-linear-0.45] PASSED 4340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-linear-0.5] PASSED 4340s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-linear-1] PASSED 4341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-lower-0.0] PASSED 4341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-lower-0.1] PASSED 4341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-lower-0.45] PASSED 4341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-lower-0.5] PASSED 4341s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-lower-1] PASSED 4342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-higher-0.0] PASSED 4342s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-higher-0.1] PASSED 4343s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-higher-0.45] PASSED 4344s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-higher-0.5] PASSED 4346s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-higher-1] PASSED 4348s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-nearest-0.0] PASSED 4350s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-nearest-0.1] PASSED 4351s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-nearest-0.45] PASSED 4353s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-nearest-0.5] PASSED 4355s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-nearest-1] PASSED 4356s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-midpoint-0.0] PASSED 4358s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-midpoint-0.1] PASSED 4359s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-midpoint-0.45] PASSED 4360s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-midpoint-0.5] PASSED 4361s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data3-midpoint-1] PASSED 4365s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-linear-0.0] PASSED 4367s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-linear-0.1] PASSED 4368s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-linear-0.45] PASSED 4369s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-linear-0.5] PASSED 4371s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-linear-1] PASSED 4373s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-lower-0.0] PASSED 4377s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-lower-0.1] PASSED 4380s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-lower-0.45] PASSED 4381s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-lower-0.5] PASSED 4384s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-lower-1] PASSED 4387s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-higher-0.0] PASSED 4390s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-higher-0.1] PASSED 4393s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-higher-0.45] PASSED 4395s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-higher-0.5] PASSED 4398s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-higher-1] PASSED 4400s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-nearest-0.0] PASSED 4402s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-nearest-0.1] PASSED 4404s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-nearest-0.45] PASSED 4406s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-nearest-0.5] PASSED 4406s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-nearest-1] PASSED 4406s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-midpoint-0.0] PASSED 4407s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-midpoint-0.1] PASSED 4407s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-midpoint-0.45] PASSED 4407s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-midpoint-0.5] PASSED 4407s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data4-midpoint-1] PASSED 4407s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-linear-0.0] PASSED 4408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-linear-0.1] PASSED 4408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-linear-0.45] PASSED 4408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-linear-0.5] PASSED 4408s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-linear-1] PASSED 4409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-lower-0.0] PASSED 4409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-lower-0.1] PASSED 4409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-lower-0.45] PASSED 4409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-lower-0.5] PASSED 4409s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-lower-1] PASSED 4410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-higher-0.0] PASSED 4410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-higher-0.1] PASSED 4410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-higher-0.45] PASSED 4410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-higher-0.5] PASSED 4410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-higher-1] PASSED 4410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-nearest-0.0] PASSED 4410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-nearest-0.1] PASSED 4410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-nearest-0.45] PASSED 4410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-nearest-0.5] PASSED 4410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-nearest-1] PASSED 4410s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-midpoint-0.0] PASSED 4411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-midpoint-0.1] PASSED 4411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-midpoint-0.45] PASSED 4411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-midpoint-0.5] PASSED 4411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data5-midpoint-1] PASSED 4411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-linear-0.0] PASSED 4411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-linear-0.1] PASSED 4411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-linear-0.45] PASSED 4411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-linear-0.5] PASSED 4411s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-linear-1] PASSED 4412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-lower-0.0] PASSED 4412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-lower-0.1] PASSED 4412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-lower-0.45] PASSED 4412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-lower-0.5] PASSED 4412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-lower-1] PASSED 4412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-higher-0.0] PASSED 4412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-higher-0.1] PASSED 4412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-higher-0.45] PASSED 4412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-higher-0.5] PASSED 4412s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-higher-1] PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-nearest-0.0] PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-nearest-0.1] PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-nearest-0.45] PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-nearest-0.5] PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-nearest-1] PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-midpoint-0.0] PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-midpoint-0.1] PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-midpoint-0.45] PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-midpoint-0.5] PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_interpolation_options[data6-midpoint-1] PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_invalid_quantile_value PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_quantile_param PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_std_1obs PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_std_neg_sqrt PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_step_not_integer_raises PASSED 4413s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_step_not_positive_raises PASSED 4414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_same_value_count_logic[values0-3-1-expected0] PASSED 4414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_same_value_count_logic[values1-3-1-expected1] PASSED 4414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_same_value_count_logic[values2-3-3-expected2] PASSED 4414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_same_value_count_logic[values3-3-3-expected3] PASSED 4414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_same_value_count_logic[values4-3-3-expected4] PASSED 4414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_same_value_count_logic[values5-3-3-expected5] PASSED 4414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_var_same_value_count_logic[values6-3-2-expected6] PASSED 4414s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_mean_sum_floating_artifacts PASSED 4415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_skew_kurt_floating_artifacts PASSED 4415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[sum-True] PASSED 4415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[sum-False] PASSED 4415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[mean-True] PASSED 4415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[mean-False] PASSED 4415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[median-True] PASSED 4415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[median-False] PASSED 4415s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[max-True] PASSED 4416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[max-False] PASSED 4416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[min-True] PASSED 4416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[min-False] PASSED 4416s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[var-True] PASSED 4417s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[var-False] PASSED 4417s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[std-True] PASSED 4417s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[std-False] PASSED 4417s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[kurt-True] PASSED 4418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[kurt-False] PASSED 4418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[skew-True] PASSED 4418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[skew-False] PASSED 4418s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[count-True] PASSED 4419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[count-False] PASSED 4419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[sem-True] PASSED 4419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_frame[sem-False] PASSED 4419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[True-True-corr] PASSED 4419s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[True-True-cov] PASSED 4420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[True-False-corr] PASSED 4420s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[True-False-cov] PASSED 4421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[False-True-corr] PASSED 4421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[False-True-cov] PASSED 4421s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[False-False-corr] PASSED 4422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_frame[False-False-cov] PASSED 4422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sum-True-int] PASSED 4422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sum-True-object] PASSED 4422s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sum-False-int] PASSED 4424s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sum-False-object] PASSED 4425s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[mean-True-int] PASSED 4426s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[mean-True-object] PASSED 4427s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[mean-False-int] PASSED 4429s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[mean-False-object] PASSED 4430s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[median-True-int] PASSED 4431s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[median-True-object] PASSED 4431s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[median-False-int] PASSED 4432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[median-False-object] PASSED 4432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[max-True-int] PASSED 4432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[max-True-object] PASSED 4432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[max-False-int] PASSED 4432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[max-False-object] PASSED 4432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[min-True-int] PASSED 4432s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[min-True-object] PASSED 4433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[min-False-int] PASSED 4433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[min-False-object] PASSED 4433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[var-True-int] PASSED 4433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[var-True-object] PASSED 4433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[var-False-int] PASSED 4433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[var-False-object] PASSED 4433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[std-True-int] PASSED 4433s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[std-True-object] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[std-False-int] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[std-False-object] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[kurt-True-int] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[kurt-True-object] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[kurt-False-int] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[kurt-False-object] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[skew-True-int] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[skew-True-object] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[skew-False-int] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[skew-False-object] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[count-True-int] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[count-True-object] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[count-False-int] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[count-False-object] PASSED 4434s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sem-True-int] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sem-True-object] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sem-False-int] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_series[sem-False-object] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-int-True-corr] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-int-True-cov] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-int-False-corr] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-int-False-cov] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-object-True-corr] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-object-True-cov] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-object-False-corr] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[True-object-False-cov] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-int-True-corr] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-int-True-cov] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-int-False-corr] PASSED 4435s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-int-False-cov] PASSED 4436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-object-True-corr] PASSED 4436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-object-True-cov] PASSED 4436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-object-False-corr] PASSED 4436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_numeric_only_corr_cov_series[False-object-False-cov] PASSED 4436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[None-s] PASSED 4436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[None-ms] PASSED 4436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[None-us] PASSED 4436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[None-ns] PASSED 4436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[UTC-s] PASSED 4436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[UTC-ms] PASSED 4436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[UTC-us] PASSED 4436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[UTC-ns] PASSED 4436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[Europe/Prague-s] PASSED 4436s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[Europe/Prague-ms] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[Europe/Prague-us] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling.py::test_rolling_timedelta_window_non_nanoseconds[Europe/Prague-ns] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None-mean-mean-kwargs0] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None-nansum-sum-kwargs1] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None--count-kwargs2] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None-median-median-kwargs3] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None-min-min-kwargs4] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None-max-max-kwargs5] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None--std-kwargs6] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None--std-kwargs7] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None--var-kwargs8] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[None--var-kwargs9] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1-mean-mean-kwargs0] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1-nansum-sum-kwargs1] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1--count-kwargs2] PASSED 4437s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1-median-median-kwargs3] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1-min-min-kwargs4] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1-max-max-kwargs5] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1--std-kwargs6] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1--std-kwargs7] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1--var-kwargs8] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[1--var-kwargs9] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2-mean-mean-kwargs0] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2-nansum-sum-kwargs1] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2--count-kwargs2] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2-median-median-kwargs3] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2-min-min-kwargs4] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2-max-max-kwargs5] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2--std-kwargs6] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2--std-kwargs7] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2--var-kwargs8] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[2--var-kwargs9] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5-mean-mean-kwargs0] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5-nansum-sum-kwargs1] PASSED 4438s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5--count-kwargs2] PASSED 4439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5-median-median-kwargs3] PASSED 4439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5-min-min-kwargs4] PASSED 4439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5-max-max-kwargs5] PASSED 4439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5--std-kwargs6] PASSED 4439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5--std-kwargs7] PASSED 4439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5--var-kwargs8] PASSED 4439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[5--var-kwargs9] PASSED 4439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10-mean-mean-kwargs0] PASSED 4439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10-nansum-sum-kwargs1] PASSED 4439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10--count-kwargs2] PASSED 4439s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10-median-median-kwargs3] PASSED 4440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10-min-min-kwargs4] PASSED 4440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10-max-max-kwargs5] PASSED 4440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10--std-kwargs6] PASSED 4440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10--std-kwargs7] PASSED 4440s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10--var-kwargs8] PASSED 4441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_series[10--var-kwargs9] PASSED 4441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None-mean-mean-kwargs0] PASSED 4441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None-nansum-sum-kwargs1] PASSED 4441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None--count-kwargs2] PASSED 4441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None-median-median-kwargs3] PASSED 4441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None-min-min-kwargs4] PASSED 4441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None-max-max-kwargs5] PASSED 4441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None--std-kwargs6] PASSED 4441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None--std-kwargs7] PASSED 4441s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None--var-kwargs8] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-None--var-kwargs9] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1-mean-mean-kwargs0] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1-nansum-sum-kwargs1] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1--count-kwargs2] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1-median-median-kwargs3] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1-min-min-kwargs4] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1-max-max-kwargs5] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1--std-kwargs6] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1--std-kwargs7] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1--var-kwargs8] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-1--var-kwargs9] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2-mean-mean-kwargs0] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2-nansum-sum-kwargs1] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2--count-kwargs2] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2-median-median-kwargs3] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2-min-min-kwargs4] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2-max-max-kwargs5] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2--std-kwargs6] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2--std-kwargs7] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2--var-kwargs8] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-2--var-kwargs9] PASSED 4442s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5-mean-mean-kwargs0] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5-nansum-sum-kwargs1] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5--count-kwargs2] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5-median-median-kwargs3] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5-min-min-kwargs4] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5-max-max-kwargs5] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5--std-kwargs6] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5--std-kwargs7] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5--var-kwargs8] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-5--var-kwargs9] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10-mean-mean-kwargs0] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10-nansum-sum-kwargs1] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10--count-kwargs2] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10-median-median-kwargs3] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10-min-min-kwargs4] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10-max-max-kwargs5] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10--std-kwargs6] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10--std-kwargs7] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10--var-kwargs8] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[True-10--var-kwargs9] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None-mean-mean-kwargs0] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None-nansum-sum-kwargs1] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None--count-kwargs2] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None-median-median-kwargs3] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None-min-min-kwargs4] PASSED 4443s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None-max-max-kwargs5] PASSED 4444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None--std-kwargs6] PASSED 4444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None--std-kwargs7] PASSED 4444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None--var-kwargs8] PASSED 4444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-None--var-kwargs9] PASSED 4444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1-mean-mean-kwargs0] PASSED 4444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1-nansum-sum-kwargs1] PASSED 4444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1--count-kwargs2] PASSED 4444s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1-median-median-kwargs3] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1-min-min-kwargs4] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1-max-max-kwargs5] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1--std-kwargs6] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1--std-kwargs7] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1--var-kwargs8] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-1--var-kwargs9] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2-mean-mean-kwargs0] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2-nansum-sum-kwargs1] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2--count-kwargs2] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2-median-median-kwargs3] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2-min-min-kwargs4] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2-max-max-kwargs5] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2--std-kwargs6] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2--std-kwargs7] PASSED 4445s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2--var-kwargs8] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-2--var-kwargs9] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5-mean-mean-kwargs0] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5-nansum-sum-kwargs1] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5--count-kwargs2] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5-median-median-kwargs3] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5-min-min-kwargs4] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5-max-max-kwargs5] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5--std-kwargs6] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5--std-kwargs7] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5--var-kwargs8] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-5--var-kwargs9] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10-mean-mean-kwargs0] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10-nansum-sum-kwargs1] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10--count-kwargs2] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10-median-median-kwargs3] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10-min-min-kwargs4] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10-max-max-kwargs5] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10--std-kwargs6] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10--std-kwargs7] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10--var-kwargs8] PASSED 4446s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_frame[False-10--var-kwargs9] PASSED 4447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[mean-mean-kwargs0-10] PASSED 4447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[nansum-sum-kwargs1-10] PASSED 4447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[-count-kwargs2-0] PASSED 4447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[median-median-kwargs3-10] PASSED 4447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[min-min-kwargs4-10] PASSED 4447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[max-max-kwargs5-10] PASSED 4447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[-std-kwargs6-10] PASSED 4447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[-std-kwargs7-10] PASSED 4447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[-var-kwargs8-10] PASSED 4447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_series[-var-kwargs9-10] PASSED 4447s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True-mean-mean-kwargs0-10] PASSED 4448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True-nansum-sum-kwargs1-10] PASSED 4448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True--count-kwargs2-0] PASSED 4448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True-median-median-kwargs3-10] PASSED 4448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True-min-min-kwargs4-10] PASSED 4448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True-max-max-kwargs5-10] PASSED 4448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True--std-kwargs6-10] PASSED 4448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True--std-kwargs7-10] PASSED 4448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True--var-kwargs8-10] PASSED 4448s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[True--var-kwargs9-10] PASSED 4449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False-mean-mean-kwargs0-10] PASSED 4449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False-nansum-sum-kwargs1-10] PASSED 4449s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False--count-kwargs2-0] PASSED 4450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False-median-median-kwargs3-10] PASSED 4450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False-min-min-kwargs4-10] PASSED 4450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False-max-max-kwargs5-10] PASSED 4450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False--std-kwargs6-10] PASSED 4450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False--std-kwargs7-10] PASSED 4450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False--var-kwargs8-10] PASSED 4450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_time_rule_frame[False--var-kwargs9-10] PASSED 4450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[mean-mean-kwargs0] PASSED 4450s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[nansum-sum-kwargs1] PASSED 4451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[median-median-kwargs2] PASSED 4451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[min-min-kwargs3] PASSED 4451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[max-max-kwargs4] PASSED 4451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[-std-kwargs5] PASSED 4451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[-std-kwargs6] PASSED 4451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[-var-kwargs7] PASSED 4451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans[-var-kwargs8] PASSED 4451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_nans_count PASSED 4451s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-mean-kwargs0] PASSED 4452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-sum-kwargs1] PASSED 4452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-median-kwargs2] PASSED 4452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-min-kwargs3] PASSED 4452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-max-kwargs4] PASSED 4452s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-std-kwargs5] PASSED 4453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-std-kwargs6] PASSED 4453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-var-kwargs7] PASSED 4453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-0-var-kwargs8] PASSED 4453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-mean-kwargs0] PASSED 4453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-sum-kwargs1] PASSED 4453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-median-kwargs2] PASSED 4453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-min-kwargs3] PASSED 4453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-max-kwargs4] PASSED 4453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-std-kwargs5] PASSED 4453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-std-kwargs6] PASSED 4453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-var-kwargs7] PASSED 4453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-99-var-kwargs8] PASSED 4453s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-mean-kwargs0] PASSED 4454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-sum-kwargs1] PASSED 4454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-median-kwargs2] PASSED 4454s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-min-kwargs3] PASSED 4456s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-max-kwargs4] PASSED 4457s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-std-kwargs5] PASSED 4458s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-std-kwargs6] PASSED 4459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-var-kwargs7] PASSED 4459s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[None-100-var-kwargs8] PASSED 4460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-mean-kwargs0] PASSED 4460s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-sum-kwargs1] PASSED 4461s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-median-kwargs2] PASSED 4462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-min-kwargs3] PASSED 4462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-max-kwargs4] PASSED 4462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-std-kwargs5] PASSED 4462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-std-kwargs6] PASSED 4462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-var-kwargs7] PASSED 4462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-0-var-kwargs8] PASSED 4462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-mean-kwargs0] PASSED 4462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-sum-kwargs1] PASSED 4462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-median-kwargs2] PASSED 4462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-min-kwargs3] PASSED 4462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-max-kwargs4] PASSED 4462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-std-kwargs5] PASSED 4462s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-std-kwargs6] PASSED 4463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-var-kwargs7] PASSED 4463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-99-var-kwargs8] PASSED 4463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-mean-kwargs0] PASSED 4463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-sum-kwargs1] PASSED 4463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-median-kwargs2] PASSED 4463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-min-kwargs3] PASSED 4463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-max-kwargs4] PASSED 4463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-std-kwargs5] PASSED 4463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-std-kwargs6] PASSED 4463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-var-kwargs7] PASSED 4463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[1-100-var-kwargs8] PASSED 4463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-mean-kwargs0] PASSED 4463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-sum-kwargs1] PASSED 4463s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-median-kwargs2] PASSED 4464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-min-kwargs3] PASSED 4464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-max-kwargs4] PASSED 4464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-std-kwargs5] PASSED 4464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-std-kwargs6] PASSED 4464s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-var-kwargs7] PASSED 4465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-0-var-kwargs8] PASSED 4465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-mean-kwargs0] PASSED 4465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-sum-kwargs1] PASSED 4465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-median-kwargs2] PASSED 4465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-min-kwargs3] PASSED 4465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-max-kwargs4] PASSED 4465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-std-kwargs5] PASSED 4465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-std-kwargs6] PASSED 4465s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-var-kwargs7] PASSED 4466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-99-var-kwargs8] PASSED 4466s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-mean-kwargs0] PASSED 4467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-sum-kwargs1] PASSED 4467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-median-kwargs2] PASSED 4467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-min-kwargs3] PASSED 4467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-max-kwargs4] PASSED 4467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-std-kwargs5] PASSED 4467s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-std-kwargs6] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-var-kwargs7] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[2-100-var-kwargs8] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-mean-kwargs0] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-sum-kwargs1] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-median-kwargs2] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-min-kwargs3] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-max-kwargs4] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-std-kwargs5] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-std-kwargs6] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-var-kwargs7] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-0-var-kwargs8] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-mean-kwargs0] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-sum-kwargs1] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-median-kwargs2] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-min-kwargs3] PASSED 4468s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-max-kwargs4] PASSED 4469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-std-kwargs5] PASSED 4469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-std-kwargs6] PASSED 4469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-var-kwargs7] PASSED 4469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-99-var-kwargs8] PASSED 4469s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-mean-kwargs0] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-sum-kwargs1] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-median-kwargs2] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-min-kwargs3] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-max-kwargs4] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-std-kwargs5] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-std-kwargs6] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-var-kwargs7] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[5-100-var-kwargs8] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-mean-kwargs0] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-sum-kwargs1] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-median-kwargs2] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-min-kwargs3] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-max-kwargs4] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-std-kwargs5] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-std-kwargs6] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-var-kwargs7] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-0-var-kwargs8] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-mean-kwargs0] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-sum-kwargs1] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-median-kwargs2] PASSED 4470s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-min-kwargs3] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-max-kwargs4] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-std-kwargs5] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-std-kwargs6] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-var-kwargs7] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-99-var-kwargs8] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-mean-kwargs0] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-sum-kwargs1] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-median-kwargs2] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-min-kwargs3] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-max-kwargs4] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-std-kwargs5] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-std-kwargs6] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-var-kwargs7] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods[10-100-var-kwargs8] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods_count[None] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods_count[1] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods_count[2] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods_count[5] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_min_periods_count[10] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[mean-kwargs0-15] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[sum-kwargs1-15] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[count-kwargs2-0] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[median-kwargs3-15] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[min-kwargs4-15] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[max-kwargs5-15] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[std-kwargs6-15] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[std-kwargs7-15] PASSED 4471s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[var-kwargs8-15] PASSED 4472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center[var-kwargs9-15] PASSED 4472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[mean-kwargs0-10-None] PASSED 4472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[sum-kwargs1-10-None] PASSED 4472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[count-kwargs2-0-0] PASSED 4472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[median-kwargs3-10-None] PASSED 4472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[min-kwargs4-10-None] PASSED 4472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[max-kwargs5-10-None] PASSED 4472s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[std-kwargs6-10-None] PASSED 4473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[std-kwargs7-10-None] PASSED 4473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[var-kwargs8-10-None] PASSED 4473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_series[var-kwargs9-10-None] PASSED 4473s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[mean-kwargs0-10-None] PASSED 4474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[sum-kwargs1-10-None] PASSED 4474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[count-kwargs2-0-0] PASSED 4474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[median-kwargs3-10-None] PASSED 4474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[min-kwargs4-10-None] PASSED 4474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[max-kwargs5-10-None] PASSED 4474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[std-kwargs6-10-None] PASSED 4474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[std-kwargs7-10-None] PASSED 4474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[var-kwargs8-10-None] PASSED 4474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_center_reindex_frame[var-kwargs9-10-None] PASSED 4474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[0] PASSED 4474s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[1] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[2] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[3] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[4] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[5] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[6] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[7] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[8] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[9] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[10] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[11] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[12] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[13] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_functions_window_non_shrinkage[14] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_gh6297[None] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_gh6297[1] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_gh6297[2] PASSED 4475s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_gh6297[5] PASSED 4476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_gh6297[10] PASSED 4476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_resample[None] PASSED 4476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_resample[1] PASSED 4476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_resample[2] PASSED 4476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_resample[5] PASSED 4476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_max_resample[10] PASSED 4476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_resample[None] PASSED 4476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_resample[1] PASSED 4476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_resample[2] PASSED 4476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_resample[5] PASSED 4476s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_resample[10] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_median_resample PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_median_memory_error PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type0] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type1] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type2] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type3] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type4] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type5] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type6] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type7] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type8] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_rolling_min_max_numeric_types[data_type9] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[0] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[1] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[2] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[3] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[4] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[5] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[6] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[7] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[8] PASSED 4477s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[9] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[10] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[11] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[12] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[13] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[14] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_functions.py::test_moment_functions_zero_length[15] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[None-0.0] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[None-0.1] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[None-0.5] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[None-0.9] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[None-1.0] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[1-0.0] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[1-0.1] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[1-0.5] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[1-0.9] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[1-1.0] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[2-0.0] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[2-0.1] PASSED 4478s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[2-0.5] PASSED 4479s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[2-0.9] PASSED 4479s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[2-1.0] PASSED 4479s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[5-0.0] PASSED 4479s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[5-0.1] PASSED 4479s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[5-0.5] PASSED 4479s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[5-0.9] PASSED 4479s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[5-1.0] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[10-0.0] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[10-0.1] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[10-0.5] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[10-0.9] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_series[10-1.0] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-None-0.0] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-None-0.1] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-None-0.5] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-None-0.9] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-None-1.0] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-1-0.0] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-1-0.1] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-1-0.5] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-1-0.9] PASSED 4480s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-1-1.0] PASSED 4481s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-2-0.0] PASSED 4481s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-2-0.1] PASSED 4481s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-2-0.5] PASSED 4481s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-2-0.9] PASSED 4481s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-2-1.0] PASSED 4482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-5-0.0] PASSED 4482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-5-0.1] PASSED 4482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-5-0.5] PASSED 4482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-5-0.9] PASSED 4482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-5-1.0] PASSED 4482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-10-0.0] PASSED 4482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-10-0.1] PASSED 4482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-10-0.5] PASSED 4482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-10-0.9] PASSED 4482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[True-10-1.0] PASSED 4482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-None-0.0] PASSED 4482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-None-0.1] PASSED 4482s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-None-0.5] PASSED 4483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-None-0.9] PASSED 4483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-None-1.0] PASSED 4483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-1-0.0] PASSED 4483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-1-0.1] PASSED 4483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-1-0.5] PASSED 4483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-1-0.9] PASSED 4483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-1-1.0] PASSED 4483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-2-0.0] PASSED 4483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-2-0.1] PASSED 4483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-2-0.5] PASSED 4483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-2-0.9] PASSED 4483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-2-1.0] PASSED 4483s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-5-0.0] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-5-0.1] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-5-0.5] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-5-0.9] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-5-1.0] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-10-0.0] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-10-0.1] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-10-0.5] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-10-0.9] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_frame[False-10-1.0] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_series[0.0] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_series[0.1] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_series[0.5] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_series[0.9] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_series[1.0] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[True-0.0] PASSED 4484s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[True-0.1] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[True-0.5] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[True-0.9] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[True-1.0] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[False-0.0] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[False-0.1] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[False-0.5] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[False-0.9] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_time_rule_frame[False-1.0] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_nans[0.0] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_nans[0.1] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_nans[0.5] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_nans[0.9] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_nans[1.0] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.0-0] PASSED 4485s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.0-99] PASSED 4486s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.0-100] PASSED 4486s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.1-0] PASSED 4486s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.1-99] PASSED 4486s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.1-100] PASSED 4486s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.5-0] PASSED 4487s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.5-99] PASSED 4488s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.5-100] PASSED 4488s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.9-0] PASSED 4488s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.9-99] PASSED 4489s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-0.9-100] PASSED 4489s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-1.0-0] PASSED 4489s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-1.0-99] PASSED 4489s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[None-1.0-100] PASSED 4489s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.0-0] PASSED 4490s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.0-99] PASSED 4490s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.0-100] PASSED 4490s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.1-0] PASSED 4491s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.1-99] PASSED 4491s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.1-100] PASSED 4492s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.5-0] PASSED 4492s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.5-99] PASSED 4492s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.5-100] PASSED 4493s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.9-0] PASSED 4493s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.9-99] PASSED 4494s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-0.9-100] PASSED 4494s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-1.0-0] PASSED 4495s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-1.0-99] PASSED 4495s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[1-1.0-100] PASSED 4495s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.0-0] PASSED 4496s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.0-99] PASSED 4496s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.0-100] PASSED 4496s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.1-0] PASSED 4496s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.1-99] PASSED 4496s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.1-100] PASSED 4496s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.5-0] PASSED 4497s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.5-99] PASSED 4497s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.5-100] PASSED 4497s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.9-0] PASSED 4498s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.9-99] PASSED 4498s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-0.9-100] PASSED 4498s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-1.0-0] PASSED 4498s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-1.0-99] PASSED 4499s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[2-1.0-100] PASSED 4499s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.0-0] PASSED 4500s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.0-99] PASSED 4501s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.0-100] PASSED 4501s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.1-0] PASSED 4501s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.1-99] PASSED 4502s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.1-100] PASSED 4503s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.5-0] PASSED 4503s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.5-99] PASSED 4504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.5-100] PASSED 4504s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.9-0] PASSED 4505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.9-99] PASSED 4505s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-0.9-100] PASSED 4506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-1.0-0] PASSED 4506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-1.0-99] PASSED 4506s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[5-1.0-100] PASSED 4507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.0-0] PASSED 4507s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.0-99] PASSED 4508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.0-100] PASSED 4508s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.1-0] PASSED 4509s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.1-99] PASSED 4510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.1-100] PASSED 4510s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.5-0] PASSED 4511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.5-99] PASSED 4511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.5-100] PASSED 4511s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.9-0] PASSED 4512s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.9-99] PASSED 4512s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-0.9-100] PASSED 4512s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-1.0-0] PASSED 4513s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-1.0-99] PASSED 4513s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_min_periods[10-1.0-100] PASSED 4513s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center[0.0] PASSED 4514s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center[0.1] PASSED 4514s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center[0.5] PASSED 4514s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center[0.9] PASSED 4514s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center[1.0] PASSED 4514s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_series[0.0] PASSED 4514s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_series[0.1] PASSED 4515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_series[0.5] PASSED 4515s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_series[0.9] PASSED 4516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_series[1.0] PASSED 4516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_frame[0.0] PASSED 4516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_frame[0.1] PASSED 4516s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_frame[0.5] PASSED 4517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_frame[0.9] PASSED 4517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_center_reindex_frame[1.0] PASSED 4517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_quantile.py::test_keyword_quantile_deprecated PASSED 4517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_series[kurtosis-kurt] PASSED 4517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_series[skew-skew] PASSED 4517s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_frame[True-kurtosis-kurt] PASSED 4518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_frame[True-skew-skew] PASSED 4518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_frame[False-kurtosis-kurt] PASSED 4518s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_frame[False-skew-skew] PASSED 4519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_time_rule_series[kurtosis-kurt] PASSED 4519s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_time_rule_series[skew-skew] PASSED 4520s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_time_rule_frame[True-kurtosis-kurt] PASSED 4521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_time_rule_frame[True-skew-skew] PASSED 4521s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_time_rule_frame[False-kurtosis-kurt] PASSED 4522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_time_rule_frame[False-skew-skew] PASSED 4522s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_nans[kurtosis-kurt] PASSED 4523s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_nans[skew-skew] PASSED 4524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[None-kurt-0] PASSED 4524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[None-kurt-99] PASSED 4524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[None-kurt-100] PASSED 4524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[None-skew-0] PASSED 4524s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[None-skew-99] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[None-skew-100] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[1-kurt-0] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[1-kurt-99] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[1-kurt-100] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[1-skew-0] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[1-skew-99] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[1-skew-100] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[2-kurt-0] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[2-kurt-99] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[2-kurt-100] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[2-skew-0] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[2-skew-99] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[2-skew-100] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[5-kurt-0] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[5-kurt-99] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[5-kurt-100] PASSED 4525s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[5-skew-0] PASSED 4526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[5-skew-99] PASSED 4526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[5-skew-100] PASSED 4526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[10-kurt-0] PASSED 4526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[10-kurt-99] PASSED 4526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[10-kurt-100] PASSED 4526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[10-skew-0] PASSED 4526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[10-skew-99] PASSED 4526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_min_periods[10-skew-100] PASSED 4526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_center[kurt] PASSED 4526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_center[skew] PASSED 4526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_center_reindex_series[kurt] PASSED 4526s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_center_reindex_series[skew] PASSED 4527s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_edge_cases[None] PASSED 4527s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_edge_cases[1] PASSED 4527s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_edge_cases[2] PASSED 4527s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_edge_cases[5] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_edge_cases[10] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_edge_cases[None] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_edge_cases[1] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_edge_cases[2] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_edge_cases[5] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_edge_cases[10] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_eq_value_fperr[None] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_eq_value_fperr[1] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_eq_value_fperr[2] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_eq_value_fperr[5] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_skew_eq_value_fperr[10] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_eq_value_fperr[None] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_eq_value_fperr[1] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_eq_value_fperr[2] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_eq_value_fperr[5] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py::test_rolling_kurt_eq_value_fperr[10] PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_doc_string PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_invalid_window_non_int PASSED 4528s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_invalid_window_nonfixed[2MS] PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_invalid_window_nonfixed[freq1] PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_valid_window[1D] PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_valid_window[freq1] PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_valid_window[2ms] PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_invalid_minp[1.0] PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_invalid_minp[foo] PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_invalid_minp[minp2] PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_on PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_monotonic_on PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_non_monotonic_on PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_frame_on PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_frame_on2 PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_basic_regular PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_min_periods PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_closed PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_sum PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_mean PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_median PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_quantile PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_std PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_var PASSED 4529s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_skew PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_kurt PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_count PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_regular_min PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_min PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_perf_min PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_ragged_max PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[ms-min-result_data0] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[ms-mean-result_data1] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[ms-max-result_data2] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[s-min-result_data3] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[s-mean-result_data4] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[s-max-result_data5] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[min-min-result_data6] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[min-mean-result_data7] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[min-max-result_data8] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[h-min-result_data9] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[h-mean-result_data10] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[h-max-result_data11] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[D-min-result_data12] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[D-mean-result_data13] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_freqs_ops[D-max-result_data14] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[sum] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[mean] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[count] PASSED 4530s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[median] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[std] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[var] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[kurt] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[skew] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[min] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all[max] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[sum] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[mean] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[median] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[max] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[min] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[var] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[std] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[kurt] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[skew] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[count] PASSED 4531s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_all2[sem] PASSED 4532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_rolling_cov_offset PASSED 4532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_rolling_on_decreasing_index PASSED 4532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_rolling_on_empty PASSED 4532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::TestRollingTS::test_rolling_on_multi_index_level PASSED 4532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::test_nat_axis_error[column-1] PASSED 4532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_timeseries_window.py::test_nat_axis_error[index-0] PASSED 4532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor[DataFrame] PASSED 4532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor[Series] PASSED 4532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor[DataFrame-2.0] PASSED 4532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor[DataFrame-foo] PASSED 4532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor[DataFrame-w2] PASSED 4532s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor[Series-2.0] PASSED 4533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor[Series-foo] PASSED 4533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor[Series-w2] PASSED 4533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor_wintype[DataFrame-foobar] PASSED 4533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor_wintype[DataFrame-1] PASSED 4533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor_wintype[Series-foobar] PASSED 4533s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_constructor_wintype[Series-1] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-triang] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-blackman] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-hamming] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-bartlett] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-bohman] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-blackmanharris] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-nuttall] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[DataFrame-barthann] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-triang] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-blackman] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-hamming] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-bartlett] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-bohman] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-blackmanharris] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-nuttall] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type[Series-barthann] PASSED 4534s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_agg_function_support[median] PASSED 4535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_agg_function_support[kurt] PASSED 4535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_agg_function_support[skew] PASSED 4535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_invalid_scipy_arg PASSED 4535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type_invalid[DataFrame] PASSED 4535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_constructor_with_win_type_invalid[Series] PASSED 4535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_window_with_args[None] PASSED 4535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_window_with_args[1] PASSED 4535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_window_with_args[2] PASSED 4535s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_window_with_args[5] PASSED 4536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_window_with_args[10] PASSED 4536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_win_type_with_method_invalid PASSED 4536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_consistent_win_type_freq[2000000000] PASSED 4536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_consistent_win_type_freq[2s] PASSED 4536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_consistent_win_type_freq[arg2] PASSED 4536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_win_type_freq_return_none PASSED 4536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_win_type_not_implemented PASSED 4536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_mean[None] PASSED 4536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_mean[1] PASSED 4536s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_mean[2] PASSED 4537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_mean[5] PASSED 4537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_mean[10] PASSED 4537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window[None] PASSED 4537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window[1] PASSED 4537s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window[2] PASSED 4538s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window[5] PASSED 4538s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window[10] PASSED 4538s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_corner[None] PASSED 4538s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_corner[1] PASSED 4538s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_corner[2] PASSED 4538s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_corner[5] PASSED 4538s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_corner[10] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[None-mean-xp0] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[None-std-xp1] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[None-var-xp2] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[None-sum-xp3] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[1-mean-xp0] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[1-std-xp1] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[1-var-xp2] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[1-sum-xp3] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[2-mean-xp0] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[2-std-xp1] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[2-var-xp2] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[2-sum-xp3] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[5-mean-xp0] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[5-std-xp1] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[5-var-xp2] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[5-sum-xp3] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[10-mean-xp0] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[10-std-xp1] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[10-var-xp2] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_frame[10-sum-xp3] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[None-0] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[None-1] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[None-2] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[None-3] PASSED 4539s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[None-4] PASSED 4540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[None-5] PASSED 4540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[1-0] PASSED 4540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[1-1] PASSED 4540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[1-2] PASSED 4540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[1-3] PASSED 4540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[1-4] PASSED 4540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[1-5] PASSED 4540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[2-0] PASSED 4540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[2-1] PASSED 4540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[2-2] PASSED 4540s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[2-3] PASSED 4541s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[2-4] PASSED 4541s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[2-5] PASSED 4541s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[5-0] PASSED 4541s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[5-1] PASSED 4541s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[5-2] PASSED 4541s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[5-3] PASSED 4541s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[5-4] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[5-5] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[10-0] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[10-1] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[10-2] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[10-3] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[10-4] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_na_min_periods[10-5] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[triang-None] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[triang-1] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[triang-2] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[triang-5] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[triang-10] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackman-None] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackman-1] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackman-2] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackman-5] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackman-10] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[hamming-None] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[hamming-1] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[hamming-2] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[hamming-5] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[hamming-10] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bartlett-None] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bartlett-1] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bartlett-2] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bartlett-5] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bartlett-10] PASSED 4542s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bohman-None] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bohman-1] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bohman-2] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bohman-5] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[bohman-10] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackmanharris-None] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackmanharris-1] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackmanharris-2] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackmanharris-5] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[blackmanharris-10] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[nuttall-None] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[nuttall-1] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[nuttall-2] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[nuttall-5] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[nuttall-10] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[barthann-None] PASSED 4543s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[barthann-1] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[barthann-2] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[barthann-5] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular[barthann-10] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[triang-None] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[triang-1] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[triang-2] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[triang-5] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[triang-10] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackman-None] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackman-1] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackman-2] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackman-5] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackman-10] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[hamming-None] PASSED 4544s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[hamming-1] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[hamming-2] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[hamming-5] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[hamming-10] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bartlett-None] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bartlett-1] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bartlett-2] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bartlett-5] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bartlett-10] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bohman-None] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bohman-1] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bohman-2] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bohman-5] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[bohman-10] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackmanharris-None] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackmanharris-1] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackmanharris-2] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackmanharris-5] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[blackmanharris-10] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[nuttall-None] PASSED 4545s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[nuttall-1] PASSED 4546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[nuttall-2] PASSED 4546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[nuttall-5] PASSED 4546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[nuttall-10] PASSED 4546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[barthann-None] PASSED 4546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[barthann-1] PASSED 4546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[barthann-2] PASSED 4546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[barthann-5] PASSED 4546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_linear_range[barthann-10] PASSED 4546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[triang-None] PASSED 4546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[triang-1] PASSED 4546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[triang-2] PASSED 4546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[triang-5] PASSED 4546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[triang-10] PASSED 4546s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackman-None] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackman-1] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackman-2] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackman-5] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackman-10] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[hamming-None] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[hamming-1] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[hamming-2] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[hamming-5] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[hamming-10] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bartlett-None] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bartlett-1] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bartlett-2] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bartlett-5] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bartlett-10] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bohman-None] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bohman-1] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bohman-2] PASSED 4547s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bohman-5] PASSED 4548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[bohman-10] PASSED 4548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackmanharris-None] PASSED 4548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackmanharris-1] PASSED 4548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackmanharris-2] PASSED 4548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackmanharris-5] PASSED 4548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[blackmanharris-10] PASSED 4548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[nuttall-None] PASSED 4548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[nuttall-1] PASSED 4548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[nuttall-2] PASSED 4548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[nuttall-5] PASSED 4548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[nuttall-10] PASSED 4548s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[barthann-None] PASSED 4549s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[barthann-1] PASSED 4549s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[barthann-2] PASSED 4549s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[barthann-5] PASSED 4549s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_regular_missing_data[barthann-10] PASSED 4549s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[kaiser-None] PASSED 4549s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[kaiser-1] PASSED 4549s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[kaiser-2] PASSED 4550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[kaiser-5] PASSED 4550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[kaiser-10] PASSED 4550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[gaussian-None] PASSED 4550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[gaussian-1] PASSED 4550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[gaussian-2] PASSED 4550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[gaussian-5] PASSED 4550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[gaussian-10] PASSED 4550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[general_gaussian-None] PASSED 4550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[general_gaussian-1] PASSED 4550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[general_gaussian-2] PASSED 4550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[general_gaussian-5] PASSED 4550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[general_gaussian-10] PASSED 4550s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[exponential-None] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[exponential-1] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[exponential-2] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[exponential-5] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special[exponential-10] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[kaiser-None] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[kaiser-1] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[kaiser-2] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[kaiser-5] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[kaiser-10] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[gaussian-None] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[gaussian-1] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[gaussian-2] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[gaussian-5] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[gaussian-10] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[general_gaussian-None] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[general_gaussian-1] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[general_gaussian-2] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[general_gaussian-5] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[general_gaussian-10] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[exponential-None] PASSED 4551s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[exponential-1] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[exponential-2] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[exponential-5] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_cmov_window_special_linear_range[exponential-10] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[triang-True] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[triang-False] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[blackman-True] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[blackman-False] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[hamming-True] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[hamming-False] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[bartlett-True] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[bartlett-False] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[bohman-True] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[bohman-False] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[blackmanharris-True] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[blackmanharris-False] PASSED 4552s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[nuttall-True] PASSED 4553s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[nuttall-False] PASSED 4553s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[barthann-True] PASSED 4553s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_weighted_var_big_window_no_segfault[barthann-False] PASSED 4553s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_win_type.py::test_rolling_center_axis_1 PASSED 4553s 4553s =============================== warnings summary =============================== 4553s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_numba.py:10 4553s /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 4553s pytestmark = pytest.mark.single_cpu 4553s 4553s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/test_timegrouper.py:907 4553s /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 4553s @pytest.mark.single_cpu 4553s 4553s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/transform/test_numba.py:13 4553s /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 4553s pytestmark = pytest.mark.single_cpu 4553s 4553s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py:21 4553s /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 4553s pytestmark = pytest.mark.single_cpu 4553s 4553s ../../../usr/lib/python3/dist-packages/pandas/tests/groupby/aggregate/test_numba.py:229 4553s /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 4553s @pytest.mark.single_cpu 4553s 4553s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py:27 4553s /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 4553s pytest.mark.single_cpu, 4553s 4553s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_numba.py:339 4553s /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 4553s @pytest.mark.slow 4553s 4553s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_online.py:17 4553s /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 4553s pytest.mark.single_cpu, 4553s 4553s ../../../usr/lib/python3/dist-packages/pandas/tests/window/test_rolling_skew_kurt.py:154 4553s /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 4553s @pytest.mark.slow 4553s 4553s frame/test_ufunc.py: 32 warnings 4553s groupby/test_timegrouper.py: 30 warnings 4553s groupby/transform/test_numba.py: 53 warnings 4553s groupby/aggregate/test_numba.py: 35 warnings 4553s util/test_numba.py: 1 warning 4553s window/moments/test_moments_consistency_ewm.py: 1088 warnings 4553s window/moments/test_moments_consistency_expanding.py: 380 warnings 4553s window/moments/test_moments_consistency_rolling.py: 760 warnings 4553s window/test_api.py: 937 warnings 4553s window/test_apply.py: 82 warnings 4553s window/test_base_indexer.py: 228 warnings 4553s window/test_cython_aggregations.py: 72 warnings 4553s window/test_dtypes.py: 2580 warnings 4553s window/test_ewm.py: 226 warnings 4553s window/test_expanding.py: 333 warnings 4553s window/test_groupby.py: 106 warnings 4553s window/test_numba.py: 50 warnings 4553s window/test_pairwise.py: 311 warnings 4553s window/test_rolling.py: 863 warnings 4553s window/test_rolling_functions.py: 418 warnings 4553s window/test_rolling_quantile.py: 186 warnings 4553s window/test_rolling_skew_kurt.py: 68 warnings 4553s window/test_timeseries_window.py: 73 warnings 4553s window/test_win_type.py: 287 warnings 4553s /usr/lib/python3/dist-packages/py/_process/forkedfunc.py:45: DeprecationWarning: This process (pid=7519) is multi-threaded, use of fork() may lead to deadlocks in the child. 4553s pid = os.fork() 4553s 4553s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 4553s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-fz5poy01' 4553s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 4553s 4553s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 4553s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-yrutupc3' 4553s session.config.cache.set(STEPWISE_CACHE_DIR, []) 4553s 4553s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 4553s = 8949 passed, 791 skipped, 536 deselected, 55 xfailed, 13 xpassed, 9210 warnings in 1717.85s (0:28:37) = 4555s tests with a run=False xfail for hdf5 crashes - see xfail_tests_nonintel_io.patch 4556s ============================= test session starts ============================== 4556s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 -- /usr/bin/python3.12 4556s cachedir: .pytest_cache 4556s hypothesis profile 'ci' -> deadline=None, suppress_health_check=[HealthCheck.too_slow, HealthCheck.differing_executors], database=DirectoryBasedExampleDatabase(PosixPath('/tmp/autopkgtest.7zWmJG/autopkgtest_tmp/.hypothesis/examples')) 4556s rootdir: /usr/lib/python3/dist-packages/pandas/tests/io/pytables 4556s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 4556s asyncio: mode=Mode.STRICT 4557s collecting ... collected 257 items 4557s 4557s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_mode[r] PASSED 4558s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_mode[r+] PASSED 4558s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_mode[a] PASSED 4558s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_mode[w] PASSED 4558s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_default_mode PASSED 4558s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_reopen_handle PASSED 4559s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_open_args PASSED 4560s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_flush PASSED 4561s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs_default_settings PASSED 4561s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs_default_settings_override PASSED 4561s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-0] PASSED 4561s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-1] PASSED 4561s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-2] PASSED 4562s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-3] PASSED 4562s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-4] PASSED 4562s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-5] PASSED 4562s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-6] PASSED 4562s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-7] PASSED 4562s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-8] PASSED 4562s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[zlib-9] PASSED 4563s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-0] PASSED 4563s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-1] PASSED 4563s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-2] PASSED 4563s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-3] PASSED 4563s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-4] PASSED 4563s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-5] PASSED 4564s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-6] PASSED 4564s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-7] PASSED 4564s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-8] PASSED 4564s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[lzo-9] PASSED 4564s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-0] PASSED 4564s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-1] PASSED 4564s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-2] PASSED 4564s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-3] PASSED 4564s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-4] PASSED 4564s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-5] PASSED 4564s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-6] PASSED 4565s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-7] PASSED 4565s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-8] PASSED 4565s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[bzip2-9] PASSED 4565s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-0] PASSED 4565s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-1] PASSED 4565s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-2] PASSED 4565s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-3] PASSED 4565s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-4] PASSED 4565s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-5] PASSED 4566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-6] PASSED 4566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-7] PASSED 4566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-8] PASSED 4566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc-9] PASSED 4566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-0] PASSED 4566s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-1] PASSED 4567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-2] PASSED 4567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-3] PASSED 4567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-4] PASSED 4567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-5] PASSED 4567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-6] PASSED 4567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-7] PASSED 4567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-8] PASSED 4567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2-9] PASSED 4567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-0] PASSED 4567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-1] PASSED 4567s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-2] PASSED 4568s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-3] PASSED 4568s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-4] PASSED 4568s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-5] PASSED 4568s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-6] PASSED 4568s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-7] PASSED 4568s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-8] PASSED 4569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:blosclz-9] PASSED 4569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-0] PASSED 4569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-1] PASSED 4569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-2] PASSED 4569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-3] PASSED 4569s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-4] PASSED 4570s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-5] PASSED 4570s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-6] PASSED 4571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-7] PASSED 4571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-8] PASSED 4571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4-9] PASSED 4571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-0] PASSED 4571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-1] PASSED 4571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-2] PASSED 4571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-3] PASSED 4571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-4] PASSED 4571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-5] PASSED 4571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-6] PASSED 4571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-7] PASSED 4571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-8] PASSED 4571s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:lz4hc-9] PASSED 4572s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-0] PASSED 4572s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-1] PASSED 4572s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-2] PASSED 4572s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-3] PASSED 4572s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-4] PASSED 4572s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-5] PASSED 4573s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-6] PASSED 4573s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-7] PASSED 4573s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-8] PASSED 4573s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:snappy-9] PASSED 4573s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-0] PASSED 4574s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-1] PASSED 4574s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-2] PASSED 4574s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-3] PASSED 4574s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-4] PASSED 4574s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-5] PASSED 4574s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-6] PASSED 4574s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-7] PASSED 4574s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-8] PASSED 4574s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zlib-9] PASSED 4574s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-0] PASSED 4575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-1] PASSED 4575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-2] PASSED 4575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-3] PASSED 4575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-4] PASSED 4575s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-5] PASSED 4576s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-6] PASSED 4576s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-7] PASSED 4576s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-8] PASSED 4576s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc:zstd-9] PASSED 4576s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-0] PASSED 4576s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-1] PASSED 4577s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-2] PASSED 4577s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-3] PASSED 4577s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-4] PASSED 4577s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-5] PASSED 4577s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-6] PASSED 4578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-7] PASSED 4578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-8] PASSED 4578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:blosclz-9] PASSED 4578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-0] PASSED 4578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-1] PASSED 4578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-2] PASSED 4578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-3] PASSED 4578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-4] PASSED 4578s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-5] PASSED 4579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-6] PASSED 4579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-7] PASSED 4579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-8] PASSED 4579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4-9] PASSED 4579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-0] PASSED 4579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-1] PASSED 4579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-2] PASSED 4579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-3] PASSED 4579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-4] PASSED 4579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-5] PASSED 4579s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-6] PASSED 4580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-7] PASSED 4580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-8] PASSED 4580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:lz4hc-9] PASSED 4580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-0] PASSED 4580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-1] PASSED 4580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-2] PASSED 4580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-3] PASSED 4580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-4] PASSED 4580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-5] PASSED 4580s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-6] PASSED 4581s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-7] PASSED 4581s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-8] PASSED 4581s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zlib-9] PASSED 4581s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-0] PASSED 4581s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-1] PASSED 4581s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-2] PASSED 4581s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-3] PASSED 4582s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-4] PASSED 4582s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-5] PASSED 4582s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-6] PASSED 4582s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-7] PASSED 4582s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-8] PASSED 4582s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_complibs[blosc2:zstd-9] PASSED 4582s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_encoding PASSED 4583s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val0] PASSED 4583s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val1] PASSED 4583s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val2] PASSED 4583s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val3] PASSED 4583s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val4] PASSED 4583s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val5] PASSED 4584s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val6] PASSED 4584s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val7] PASSED 4584s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[category-val8] PASSED 4584s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val0] PASSED 4584s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val1] PASSED 4585s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val2] PASSED 4585s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val3] PASSED 4585s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val4] PASSED 4585s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val5] PASSED 4585s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val6] PASSED 4585s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val7] PASSED 4585s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_latin_encoding[object-val8] PASSED 4586s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_multiple_open_close PASSED 4586s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py::test_fspath PASSED 4586s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append PASSED 4587s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_series PASSED 4587s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_some_nans PASSED 4588s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_all_nans PASSED 4588s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_frame_column_oriented FAILED 4588s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_with_different_block_ordering PASSED 4589s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_with_strings PASSED 4589s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_with_empty_string PASSED 4589s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_with_data_columns PASSED 4589s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_hierarchical PASSED 4589s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_misc PASSED 4589s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_misc_chunksize[10] PASSED 4590s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_misc_chunksize[200] PASSED 4590s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_misc_chunksize[1000] PASSED 4590s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_misc_empty_frame PASSED 4590s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_raise PASSED 4590s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_with_timedelta PASSED 4590s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_to_multiple PASSED 4590s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_to_multiple_dropna PASSED 4591s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_to_multiple_dropna_false PASSED 4591s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_to_multiple_min_itemsize PASSED 4591s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_context PASSED 4592s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_no_track_times PASSED 4593s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_iter_empty PASSED 4594s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_repr PASSED 4595s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_contains PASSED 4595s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_versioning PASSED 4596s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_walk[/-expected0] PASSED 4596s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_walk[/second_group-expected1] PASSED 4596s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_getattr PASSED 4596s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_store_dropna PASSED 4596s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_to_hdf_with_min_itemsize PASSED 4597s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_to_hdf_errors[fixed] PASSED 4597s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_to_hdf_errors[table] PASSED 4597s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_create_table_index PASSED 4598s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_create_table_index_data_columns_argument PASSED 4598s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_mi_data_columns PASSED 4598s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_table_mixed_dtypes PASSED 4599s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_calendar_roundtrip_issue PASSED 4599s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_remove PASSED 4600s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_same_name_scoping PASSED 4600s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_store_index_name PASSED 4601s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_store_index_name_numpy_str[table] PASSED 4601s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_store_index_name_numpy_str[fixed] PASSED 4601s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_store_series_name PASSED 4601s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_overwrite_node PASSED 4602s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_coordinates PASSED 4602s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_start_stop_table PASSED 4602s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_start_stop_multiple PASSED 4602s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_start_stop_fixed PASSED 4603s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_select_filter_corner FAILED 4603s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_path_pathlib PASSED 4603s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_contiguous_mixed_data_table[0-2] PASSED 4604s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_contiguous_mixed_data_table[1-2] PASSED 4604s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_contiguous_mixed_data_table[None-None] PASSED 4604s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_path_pathlib_hdfstore PASSED 4604s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_pickle_path_localpath PASSED 4604s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_path_localpath_hdfstore PASSED 4604s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_copy[True] PASSED 4604s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_copy[False] PASSED 4605s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_duplicate_column_name PASSED 4605s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_preserve_timedeltaindex_type PASSED 4605s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_columns_multiindex_modified PASSED 4605s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_to_hdf_with_object_column_names PASSED 4605s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_hdfstore_strides PASSED 4605s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_store_bool_index PASSED 4605s 4605s =================================== FAILURES =================================== 4605s ______________________ test_append_frame_column_oriented _______________________ 4605s self = 4605s node = , kwargs = {'side': 'right'} 4605s value = 4605s slobj = slice(0, 4, None) 4605s 4605s def visit_Subscript(self, node, **kwargs): 4605s # only allow simple subscripts 4605s 4605s value = self.visit(node.value) 4605s slobj = self.visit(node.slice) 4605s try: 4605s value = value.value 4605s except AttributeError: 4605s pass 4605s 4605s if isinstance(slobj, Term): 4605s # In py39 np.ndarray lookups with Term containing int raise 4605s slobj = slobj.value 4605s 4605s try: 4605s > return self.const_type(value[slobj], self.env) 4605s E TypeError: 'builtin_function_or_method' object is not subscriptable 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/pytables.py:458: TypeError 4605s 4605s The above exception was the direct cause of the following exception: 4605s 4605s setup_path = 'tmp.__fd9d5aa2-5e14-4d08-a28b-c05618681bc4__.h5' 4605s 4605s @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) 4605s def test_append_frame_column_oriented(setup_path): 4605s with ensure_clean_store(setup_path) as store: 4605s # column oriented 4605s df = tm.makeTimeDataFrame() 4605s df.index = df.index._with_freq(None) # freq doesn't round-trip 4605s 4605s _maybe_remove(store, "df1") 4605s store.append("df1", df.iloc[:, :2], axes=["columns"]) 4605s store.append("df1", df.iloc[:, 2:]) 4605s tm.assert_frame_equal(store["df1"], df) 4605s 4605s result = store.select("df1", "columns=A") 4605s expected = df.reindex(columns=["A"]) 4605s tm.assert_frame_equal(expected, result) 4605s 4605s # selection on the non-indexable 4605s > result = store.select("df1", ("columns=A", "index=df.index[0:4]")) 4605s 4605s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py:300: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s File path: /tmp/tmpsmgq6d6a/tmp.__fd9d5aa2-5e14-4d08-a28b-c05618681bc4__.h5 4605s 4605s key = 'df1', where = [columns=A, index=df.index[0:4]], start = None, stop = None 4605s columns = None, iterator = False, chunksize = None, auto_close = False 4605s 4605s def select( 4605s self, 4605s key: str, 4605s where=None, 4605s start=None, 4605s stop=None, 4605s columns=None, 4605s iterator: bool = False, 4605s chunksize: int | None = None, 4605s auto_close: bool = False, 4605s ): 4605s """ 4605s Retrieve pandas object stored in file, optionally based on where criteria. 4605s 4605s .. warning:: 4605s 4605s Pandas uses PyTables for reading and writing HDF5 files, which allows 4605s serializing object-dtype data with pickle when using the "fixed" format. 4605s Loading pickled data received from untrusted sources can be unsafe. 4605s 4605s See: https://docs.python.org/3/library/pickle.html for more. 4605s 4605s Parameters 4605s ---------- 4605s key : str 4605s Object being retrieved from file. 4605s where : list or None 4605s List of Term (or convertible) objects, optional. 4605s start : int or None 4605s Row number to start selection. 4605s stop : int, default None 4605s Row number to stop selection. 4605s columns : list or None 4605s A list of columns that if not None, will limit the return columns. 4605s iterator : bool or False 4605s Returns an iterator. 4605s chunksize : int or None 4605s Number or rows to include in iteration, return an iterator. 4605s auto_close : bool or False 4605s Should automatically close the store when finished. 4605s 4605s Returns 4605s ------- 4605s object 4605s Retrieved object from file. 4605s 4605s Examples 4605s -------- 4605s >>> df = pd.DataFrame([[1, 2], [3, 4]], columns=['A', 'B']) 4605s >>> store = pd.HDFStore("store.h5", 'w') # doctest: +SKIP 4605s >>> store.put('data', df) # doctest: +SKIP 4605s >>> store.get('data') # doctest: +SKIP 4605s >>> print(store.keys()) # doctest: +SKIP 4605s ['/data1', '/data2'] 4605s >>> store.select('/data1') # doctest: +SKIP 4605s A B 4605s 0 1 2 4605s 1 3 4 4605s >>> store.select('/data1', where='columns == A') # doctest: +SKIP 4605s A 4605s 0 1 4605s 1 3 4605s >>> store.close() # doctest: +SKIP 4605s """ 4605s group = self.get_node(key) 4605s if group is None: 4605s raise KeyError(f"No object named {key} in the file") 4605s 4605s # create the storer and axes 4605s where = _ensure_term(where, scope_level=1) 4605s s = self._create_storer(group) 4605s s.infer_axes() 4605s 4605s # function to call on iteration 4605s def func(_start, _stop, _where): 4605s return s.read(start=_start, stop=_stop, where=_where, columns=columns) 4605s 4605s # create the iterator 4605s it = TableIterator( 4605s self, 4605s s, 4605s func, 4605s where=where, 4605s nrows=s.nrows, 4605s start=start, 4605s stop=stop, 4605s iterator=iterator, 4605s chunksize=chunksize, 4605s auto_close=auto_close, 4605s ) 4605s 4605s > return it.get_result() 4605s 4605s /usr/lib/python3/dist-packages/pandas/io/pytables.py:914: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s coordinates = False 4605s 4605s def get_result(self, coordinates: bool = False): 4605s # return the actual iterator 4605s if self.chunksize is not None: 4605s if not isinstance(self.s, Table): 4605s raise TypeError("can only use an iterator or chunksize on a table") 4605s 4605s self.coordinates = self.s.read_coordinates(where=self.where) 4605s 4605s return self 4605s 4605s # if specified read via coordinates (necessary for multiple selections 4605s if coordinates: 4605s if not isinstance(self.s, Table): 4605s raise TypeError("can only read_coordinates on a table") 4605s where = self.s.read_coordinates( 4605s where=self.where, start=self.start, stop=self.stop 4605s ) 4605s else: 4605s where = self.where 4605s 4605s # directly return the result 4605s > results = self.func(self.start, self.stop, where) 4605s 4605s /usr/lib/python3/dist-packages/pandas/io/pytables.py:2037: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s _start = 0, _stop = 4, _where = [columns=A, index=df.index[0:4]] 4605s 4605s def func(_start, _stop, _where): 4605s > return s.read(start=_start, stop=_stop, where=_where, columns=columns) 4605s 4605s /usr/lib/python3/dist-packages/pandas/io/pytables.py:898: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = <[ClosedNodeError('the node object is closed') raised in repr()] AppendableFrameTable object at 0xe5d5bfc0> 4605s where = [columns=A, index=df.index[0:4]], columns = None, start = 0, stop = 4 4605s 4605s def read( 4605s self, 4605s where=None, 4605s columns=None, 4605s start: int | None = None, 4605s stop: int | None = None, 4605s ): 4605s # validate the version 4605s self.validate_version(where) 4605s 4605s # infer the data kind 4605s if not self.infer_axes(): 4605s return None 4605s 4605s > result = self._read_axes(where=where, start=start, stop=stop) 4605s 4605s /usr/lib/python3/dist-packages/pandas/io/pytables.py:4635: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = <[ClosedNodeError('the node object is closed') raised in repr()] AppendableFrameTable object at 0xe5d5bfc0> 4605s where = [columns=A, index=df.index[0:4]], start = 0, stop = 4 4605s 4605s def _read_axes( 4605s self, where, start: int | None = None, stop: int | None = None 4605s ) -> list[tuple[np.ndarray, np.ndarray] | tuple[Index, Index]]: 4605s """ 4605s Create the axes sniffed from the table. 4605s 4605s Parameters 4605s ---------- 4605s where : ??? 4605s start : int or None, default None 4605s stop : int or None, default None 4605s 4605s Returns 4605s ------- 4605s List[Tuple[index_values, column_values]] 4605s """ 4605s # create the selection 4605s > selection = Selection(self, where=where, start=start, stop=stop) 4605s 4605s /usr/lib/python3/dist-packages/pandas/io/pytables.py:3821: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s table = <[ClosedNodeError('the node object is closed') raised in repr()] AppendableFrameTable object at 0xe5d5bfc0> 4605s where = [columns=A, index=df.index[0:4]], start = 0, stop = 4 4605s 4605s def __init__( 4605s self, 4605s table: Table, 4605s where=None, 4605s start: int | None = None, 4605s stop: int | None = None, 4605s ) -> None: 4605s self.table = table 4605s self.where = where 4605s self.start = start 4605s self.stop = stop 4605s self.condition = None 4605s self.filter = None 4605s self.terms = None 4605s self.coordinates = None 4605s 4605s if is_list_like(where): 4605s # see if we have a passed coordinate like 4605s with suppress(ValueError): 4605s inferred = lib.infer_dtype(where, skipna=False) 4605s if inferred in ("integer", "boolean"): 4605s where = np.asarray(where) 4605s if where.dtype == np.bool_: 4605s start, stop = self.start, self.stop 4605s if start is None: 4605s start = 0 4605s if stop is None: 4605s stop = self.table.nrows 4605s self.coordinates = np.arange(start, stop)[where] 4605s elif issubclass(where.dtype.type, np.integer): 4605s if (self.start is not None and (where < self.start).any()) or ( 4605s self.stop is not None and (where >= self.stop).any() 4605s ): 4605s raise ValueError( 4605s "where must have index locations >= start and < stop" 4605s ) 4605s self.coordinates = where 4605s 4605s if self.coordinates is None: 4605s > self.terms = self.generate(where) 4605s 4605s /usr/lib/python3/dist-packages/pandas/io/pytables.py:5349: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s where = [columns=A, index=df.index[0:4]] 4605s 4605s def generate(self, where): 4605s """where can be a : dict,list,tuple,string""" 4605s if where is None: 4605s return None 4605s 4605s q = self.table.queryables() 4605s try: 4605s > return PyTablesExpr(where, queryables=q, encoding=self.table.encoding) 4605s 4605s /usr/lib/python3/dist-packages/pandas/io/pytables.py:5362: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = (columns=A) & (index=df.index[0:4]) 4605s where = [columns=A, index=df.index[0:4]] 4605s queryables = {'columns': name->columns,cname->columns,axis->1,pos->0,kind->string, 'index': None} 4605s encoding = 'UTF-8', scope_level = 0 4605s 4605s def __init__( 4605s self, 4605s where, 4605s queryables: dict[str, Any] | None = None, 4605s encoding=None, 4605s scope_level: int = 0, 4605s ) -> None: 4605s where = _validate_where(where) 4605s 4605s self.encoding = encoding 4605s self.condition = None 4605s self.filter = None 4605s self.terms = None 4605s self._visitor = None 4605s 4605s # capture the environment if needed 4605s local_dict: _scope.DeepChainMap[Any, Any] | None = None 4605s 4605s if isinstance(where, PyTablesExpr): 4605s local_dict = where.env.scope 4605s _where = where.expr 4605s 4605s elif is_list_like(where): 4605s where = list(where) 4605s for idx, w in enumerate(where): 4605s if isinstance(w, PyTablesExpr): 4605s local_dict = w.env.scope 4605s else: 4605s where[idx] = _validate_where(w) 4605s _where = " & ".join([f"({w})" for w in com.flatten(where)]) 4605s else: 4605s # _validate_where ensures we otherwise have a string 4605s _where = where 4605s 4605s self.expr = _where 4605s self.env = PyTablesScope(scope_level + 1, local_dict=local_dict) 4605s 4605s if queryables is not None and isinstance(self.expr, str): 4605s self.env.queryables.update(queryables) 4605s self._visitor = PyTablesExprVisitor( 4605s self.env, 4605s queryables=queryables, 4605s parser="pytables", 4605s engine="pytables", 4605s encoding=encoding, 4605s ) 4605s > self.terms = self.parse() 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/pytables.py:600: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = (columns=A) & (index=df.index[0:4]) 4605s 4605s def parse(self): 4605s """ 4605s Parse an expression. 4605s """ 4605s > return self._visitor.visit(self.expr) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:827: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {} 4605s clean = '(columns ==A )and (index ==df .index [0 :4 ])', method = 'visit_Module' 4605s visitor = > 4605s 4605s def visit(self, node, **kwargs): 4605s if isinstance(node, str): 4605s clean = self.preparser(node) 4605s try: 4605s node = ast.fix_missing_locations(ast.parse(clean)) 4605s except SyntaxError as e: 4605s if any(iskeyword(x) for x in clean.split()): 4605s e.msg = "Python keyword not valid identifier in numexpr query" 4605s raise e 4605s 4605s method = f"visit_{type(node).__name__}" 4605s visitor = getattr(self, method) 4605s > return visitor(node, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {} 4605s expr = 4605s 4605s def visit_Module(self, node, **kwargs): 4605s if len(node.body) != 1: 4605s raise SyntaxError("only a single expression is allowed") 4605s expr = node.body[0] 4605s > return self.visit(expr, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:417: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {}, method = 'visit_Expr' 4605s visitor = > 4605s 4605s def visit(self, node, **kwargs): 4605s if isinstance(node, str): 4605s clean = self.preparser(node) 4605s try: 4605s node = ast.fix_missing_locations(ast.parse(clean)) 4605s except SyntaxError as e: 4605s if any(iskeyword(x) for x in clean.split()): 4605s e.msg = "Python keyword not valid identifier in numexpr query" 4605s raise e 4605s 4605s method = f"visit_{type(node).__name__}" 4605s visitor = getattr(self, method) 4605s > return visitor(node, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {} 4605s 4605s def visit_Expr(self, node, **kwargs): 4605s > return self.visit(node.value, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:420: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {}, method = 'visit_BoolOp' 4605s visitor = > 4605s 4605s def visit(self, node, **kwargs): 4605s if isinstance(node, str): 4605s clean = self.preparser(node) 4605s try: 4605s node = ast.fix_missing_locations(ast.parse(clean)) 4605s except SyntaxError as e: 4605s if any(iskeyword(x) for x in clean.split()): 4605s e.msg = "Python keyword not valid identifier in numexpr query" 4605s raise e 4605s 4605s method = f"visit_{type(node).__name__}" 4605s visitor = getattr(self, method) 4605s > return visitor(node, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {} 4605s visitor = .visitor at 0xe5d0e6b8> 4605s operands = [, ] 4605s 4605s def visit_BoolOp(self, node, **kwargs): 4605s def visitor(x, y): 4605s lhs = self._try_visit_binop(x) 4605s rhs = self._try_visit_binop(y) 4605s 4605s op, op_class, lhs, rhs = self._maybe_transform_eq_ne(node, lhs, rhs) 4605s return self._maybe_evaluate_binop(op, node.op, lhs, rhs) 4605s 4605s operands = node.values 4605s > return reduce(visitor, operands) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:745: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s x = , y = 4605s 4605s def visitor(x, y): 4605s lhs = self._try_visit_binop(x) 4605s > rhs = self._try_visit_binop(y) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:739: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s bop = 4605s 4605s def _try_visit_binop(self, bop): 4605s if isinstance(bop, (Op, Term)): 4605s return bop 4605s > return self.visit(bop) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:734: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {}, method = 'visit_Compare' 4605s visitor = > 4605s 4605s def visit(self, node, **kwargs): 4605s if isinstance(node, str): 4605s clean = self.preparser(node) 4605s try: 4605s node = ast.fix_missing_locations(ast.parse(clean)) 4605s except SyntaxError as e: 4605s if any(iskeyword(x) for x in clean.split()): 4605s e.msg = "Python keyword not valid identifier in numexpr query" 4605s raise e 4605s 4605s method = f"visit_{type(node).__name__}" 4605s visitor = getattr(self, method) 4605s > return visitor(node, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {} 4605s ops = [] 4605s comps = [] 4605s op = , binop = 4605s 4605s def visit_Compare(self, node, **kwargs): 4605s ops = node.ops 4605s comps = node.comparators 4605s 4605s # base case: we have something like a CMP b 4605s if len(comps) == 1: 4605s op = self.translate_In(ops[0]) 4605s binop = ast.BinOp(op=op, left=node.left, right=comps[0]) 4605s > return self.visit(binop) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:718: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {}, method = 'visit_BinOp' 4605s visitor = > 4605s 4605s def visit(self, node, **kwargs): 4605s if isinstance(node, str): 4605s clean = self.preparser(node) 4605s try: 4605s node = ast.fix_missing_locations(ast.parse(clean)) 4605s except SyntaxError as e: 4605s if any(iskeyword(x) for x in clean.split()): 4605s e.msg = "Python keyword not valid identifier in numexpr query" 4605s raise e 4605s 4605s method = f"visit_{type(node).__name__}" 4605s visitor = getattr(self, method) 4605s > return visitor(node, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {} 4605s 4605s def visit_BinOp(self, node, **kwargs): 4605s > op, op_class, left, right = self._maybe_transform_eq_ne(node) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:531: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , left = index, right = None 4605s 4605s def _maybe_transform_eq_ne(self, node, left=None, right=None): 4605s if left is None: 4605s left = self.visit(node.left, side="left") 4605s if right is None: 4605s > right = self.visit(node.right, side="right") 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:453: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {'side': 'right'} 4605s method = 'visit_Subscript' 4605s visitor = > 4605s 4605s def visit(self, node, **kwargs): 4605s if isinstance(node, str): 4605s clean = self.preparser(node) 4605s try: 4605s node = ast.fix_missing_locations(ast.parse(clean)) 4605s except SyntaxError as e: 4605s if any(iskeyword(x) for x in clean.split()): 4605s e.msg = "Python keyword not valid identifier in numexpr query" 4605s raise e 4605s 4605s method = f"visit_{type(node).__name__}" 4605s visitor = getattr(self, method) 4605s > return visitor(node, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {'side': 'right'} 4605s value = 4605s slobj = slice(0, 4, None) 4605s 4605s def visit_Subscript(self, node, **kwargs): 4605s # only allow simple subscripts 4605s 4605s value = self.visit(node.value) 4605s slobj = self.visit(node.slice) 4605s try: 4605s value = value.value 4605s except AttributeError: 4605s pass 4605s 4605s if isinstance(slobj, Term): 4605s # In py39 np.ndarray lookups with Term containing int raise 4605s slobj = slobj.value 4605s 4605s try: 4605s return self.const_type(value[slobj], self.env) 4605s except TypeError as err: 4605s > raise ValueError( 4605s f"cannot subscript {repr(value)} with {repr(slobj)}" 4605s ) from err 4605s E ValueError: cannot subscript with slice(0, 4, None) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/pytables.py:460: ValueError 4605s __________________________ test_select_filter_corner ___________________________ 4605s setup_path = 'tmp.__edaa8093-785e-4145-b66c-d12b023f9646__.h5' 4605s 4605s @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) 4605s def test_select_filter_corner(setup_path): 4605s df = DataFrame(np.random.default_rng(2).standard_normal((50, 100))) 4605s df.index = [f"{c:3d}" for c in df.index] 4605s df.columns = [f"{c:3d}" for c in df.columns] 4605s 4605s with ensure_clean_store(setup_path) as store: 4605s store.put("frame", df, format="table") 4605s 4605s crit = "columns=df.columns[:75]" 4605s > result = store.select("frame", [crit]) 4605s 4605s /usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py:777: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s File path: /tmp/tmpg0cxgzte/tmp.__edaa8093-785e-4145-b66c-d12b023f9646__.h5 4605s 4605s key = 'frame', where = [columns=df.columns[:75]], start = None, stop = None 4605s columns = None, iterator = False, chunksize = None, auto_close = False 4605s 4605s def select( 4605s self, 4605s key: str, 4605s where=None, 4605s start=None, 4605s stop=None, 4605s columns=None, 4605s iterator: bool = False, 4605s chunksize: int | None = None, 4605s auto_close: bool = False, 4605s ): 4605s """ 4605s Retrieve pandas object stored in file, optionally based on where criteria. 4605s 4605s .. warning:: 4605s 4605s Pandas uses PyTables for reading and writing HDF5 files, which allows 4605s serializing object-dtype data with pickle when using the "fixed" format. 4605s Loading pickled data received from untrusted sources can be unsafe. 4605s 4605s See: https://docs.python.org/3/library/pickle.html for more. 4605s 4605s Parameters 4605s ---------- 4605s key : str 4605s Object being retrieved from file. 4605s where : list or None 4605s List of Term (or convertible) objects, optional. 4605s start : int or None 4605s Row number to start selection. 4605s stop : int, default None 4605s Row number to stop selection. 4605s columns : list or None 4605s A list of columns that if not None, will limit the return columns. 4605s iterator : bool or False 4605s Returns an iterator. 4605s chunksize : int or None 4605s Number or rows to include in iteration, return an iterator. 4605s auto_close : bool or False 4605s Should automatically close the store when finished. 4605s 4605s Returns 4605s ------- 4605s object 4605s Retrieved object from file. 4605s 4605s Examples 4605s -------- 4605s >>> df = pd.DataFrame([[1, 2], [3, 4]], columns=['A', 'B']) 4605s >>> store = pd.HDFStore("store.h5", 'w') # doctest: +SKIP 4605s >>> store.put('data', df) # doctest: +SKIP 4605s >>> store.get('data') # doctest: +SKIP 4605s >>> print(store.keys()) # doctest: +SKIP 4605s ['/data1', '/data2'] 4605s >>> store.select('/data1') # doctest: +SKIP 4605s A B 4605s 0 1 2 4605s 1 3 4 4605s >>> store.select('/data1', where='columns == A') # doctest: +SKIP 4605s A 4605s 0 1 4605s 1 3 4605s >>> store.close() # doctest: +SKIP 4605s """ 4605s group = self.get_node(key) 4605s if group is None: 4605s raise KeyError(f"No object named {key} in the file") 4605s 4605s # create the storer and axes 4605s where = _ensure_term(where, scope_level=1) 4605s s = self._create_storer(group) 4605s s.infer_axes() 4605s 4605s # function to call on iteration 4605s def func(_start, _stop, _where): 4605s return s.read(start=_start, stop=_stop, where=_where, columns=columns) 4605s 4605s # create the iterator 4605s it = TableIterator( 4605s self, 4605s s, 4605s func, 4605s where=where, 4605s nrows=s.nrows, 4605s start=start, 4605s stop=stop, 4605s iterator=iterator, 4605s chunksize=chunksize, 4605s auto_close=auto_close, 4605s ) 4605s 4605s > return it.get_result() 4605s 4605s /usr/lib/python3/dist-packages/pandas/io/pytables.py:914: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s coordinates = False 4605s 4605s def get_result(self, coordinates: bool = False): 4605s # return the actual iterator 4605s if self.chunksize is not None: 4605s if not isinstance(self.s, Table): 4605s raise TypeError("can only use an iterator or chunksize on a table") 4605s 4605s self.coordinates = self.s.read_coordinates(where=self.where) 4605s 4605s return self 4605s 4605s # if specified read via coordinates (necessary for multiple selections 4605s if coordinates: 4605s if not isinstance(self.s, Table): 4605s raise TypeError("can only read_coordinates on a table") 4605s where = self.s.read_coordinates( 4605s where=self.where, start=self.start, stop=self.stop 4605s ) 4605s else: 4605s where = self.where 4605s 4605s # directly return the result 4605s > results = self.func(self.start, self.stop, where) 4605s 4605s /usr/lib/python3/dist-packages/pandas/io/pytables.py:2037: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s _start = 0, _stop = 50, _where = [columns=df.columns[:75]] 4605s 4605s def func(_start, _stop, _where): 4605s > return s.read(start=_start, stop=_stop, where=_where, columns=columns) 4605s 4605s /usr/lib/python3/dist-packages/pandas/io/pytables.py:898: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = <[ClosedNodeError('the node object is closed') raised in repr()] AppendableFrameTable object at 0xe5d11708> 4605s where = [columns=df.columns[:75]], columns = None, start = 0, stop = 50 4605s 4605s def read( 4605s self, 4605s where=None, 4605s columns=None, 4605s start: int | None = None, 4605s stop: int | None = None, 4605s ): 4605s # validate the version 4605s self.validate_version(where) 4605s 4605s # infer the data kind 4605s if not self.infer_axes(): 4605s return None 4605s 4605s > result = self._read_axes(where=where, start=start, stop=stop) 4605s 4605s /usr/lib/python3/dist-packages/pandas/io/pytables.py:4635: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = <[ClosedNodeError('the node object is closed') raised in repr()] AppendableFrameTable object at 0xe5d11708> 4605s where = [columns=df.columns[:75]], start = 0, stop = 50 4605s 4605s def _read_axes( 4605s self, where, start: int | None = None, stop: int | None = None 4605s ) -> list[tuple[np.ndarray, np.ndarray] | tuple[Index, Index]]: 4605s """ 4605s Create the axes sniffed from the table. 4605s 4605s Parameters 4605s ---------- 4605s where : ??? 4605s start : int or None, default None 4605s stop : int or None, default None 4605s 4605s Returns 4605s ------- 4605s List[Tuple[index_values, column_values]] 4605s """ 4605s # create the selection 4605s > selection = Selection(self, where=where, start=start, stop=stop) 4605s 4605s /usr/lib/python3/dist-packages/pandas/io/pytables.py:3821: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s table = <[ClosedNodeError('the node object is closed') raised in repr()] AppendableFrameTable object at 0xe5d11708> 4605s where = [columns=df.columns[:75]], start = 0, stop = 50 4605s 4605s def __init__( 4605s self, 4605s table: Table, 4605s where=None, 4605s start: int | None = None, 4605s stop: int | None = None, 4605s ) -> None: 4605s self.table = table 4605s self.where = where 4605s self.start = start 4605s self.stop = stop 4605s self.condition = None 4605s self.filter = None 4605s self.terms = None 4605s self.coordinates = None 4605s 4605s if is_list_like(where): 4605s # see if we have a passed coordinate like 4605s with suppress(ValueError): 4605s inferred = lib.infer_dtype(where, skipna=False) 4605s if inferred in ("integer", "boolean"): 4605s where = np.asarray(where) 4605s if where.dtype == np.bool_: 4605s start, stop = self.start, self.stop 4605s if start is None: 4605s start = 0 4605s if stop is None: 4605s stop = self.table.nrows 4605s self.coordinates = np.arange(start, stop)[where] 4605s elif issubclass(where.dtype.type, np.integer): 4605s if (self.start is not None and (where < self.start).any()) or ( 4605s self.stop is not None and (where >= self.stop).any() 4605s ): 4605s raise ValueError( 4605s "where must have index locations >= start and < stop" 4605s ) 4605s self.coordinates = where 4605s 4605s if self.coordinates is None: 4605s > self.terms = self.generate(where) 4605s 4605s /usr/lib/python3/dist-packages/pandas/io/pytables.py:5349: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s where = [columns=df.columns[:75]] 4605s 4605s def generate(self, where): 4605s """where can be a : dict,list,tuple,string""" 4605s if where is None: 4605s return None 4605s 4605s q = self.table.queryables() 4605s try: 4605s > return PyTablesExpr(where, queryables=q, encoding=self.table.encoding) 4605s 4605s /usr/lib/python3/dist-packages/pandas/io/pytables.py:5362: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = (columns=df.columns[:75]), where = [columns=df.columns[:75]] 4605s queryables = {'columns': None, 'index': name->index,cname->index,axis->0,pos->0,kind->string} 4605s encoding = 'UTF-8', scope_level = 0 4605s 4605s def __init__( 4605s self, 4605s where, 4605s queryables: dict[str, Any] | None = None, 4605s encoding=None, 4605s scope_level: int = 0, 4605s ) -> None: 4605s where = _validate_where(where) 4605s 4605s self.encoding = encoding 4605s self.condition = None 4605s self.filter = None 4605s self.terms = None 4605s self._visitor = None 4605s 4605s # capture the environment if needed 4605s local_dict: _scope.DeepChainMap[Any, Any] | None = None 4605s 4605s if isinstance(where, PyTablesExpr): 4605s local_dict = where.env.scope 4605s _where = where.expr 4605s 4605s elif is_list_like(where): 4605s where = list(where) 4605s for idx, w in enumerate(where): 4605s if isinstance(w, PyTablesExpr): 4605s local_dict = w.env.scope 4605s else: 4605s where[idx] = _validate_where(w) 4605s _where = " & ".join([f"({w})" for w in com.flatten(where)]) 4605s else: 4605s # _validate_where ensures we otherwise have a string 4605s _where = where 4605s 4605s self.expr = _where 4605s self.env = PyTablesScope(scope_level + 1, local_dict=local_dict) 4605s 4605s if queryables is not None and isinstance(self.expr, str): 4605s self.env.queryables.update(queryables) 4605s self._visitor = PyTablesExprVisitor( 4605s self.env, 4605s queryables=queryables, 4605s parser="pytables", 4605s engine="pytables", 4605s encoding=encoding, 4605s ) 4605s > self.terms = self.parse() 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/pytables.py:600: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = (columns=df.columns[:75]) 4605s 4605s def parse(self): 4605s """ 4605s Parse an expression. 4605s """ 4605s > return self._visitor.visit(self.expr) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:827: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {} 4605s clean = '(columns ==df .columns [:75 ])', method = 'visit_Module' 4605s visitor = > 4605s 4605s def visit(self, node, **kwargs): 4605s if isinstance(node, str): 4605s clean = self.preparser(node) 4605s try: 4605s node = ast.fix_missing_locations(ast.parse(clean)) 4605s except SyntaxError as e: 4605s if any(iskeyword(x) for x in clean.split()): 4605s e.msg = "Python keyword not valid identifier in numexpr query" 4605s raise e 4605s 4605s method = f"visit_{type(node).__name__}" 4605s visitor = getattr(self, method) 4605s > return visitor(node, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {} 4605s expr = 4605s 4605s def visit_Module(self, node, **kwargs): 4605s if len(node.body) != 1: 4605s raise SyntaxError("only a single expression is allowed") 4605s expr = node.body[0] 4605s > return self.visit(expr, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:417: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {}, method = 'visit_Expr' 4605s visitor = > 4605s 4605s def visit(self, node, **kwargs): 4605s if isinstance(node, str): 4605s clean = self.preparser(node) 4605s try: 4605s node = ast.fix_missing_locations(ast.parse(clean)) 4605s except SyntaxError as e: 4605s if any(iskeyword(x) for x in clean.split()): 4605s e.msg = "Python keyword not valid identifier in numexpr query" 4605s raise e 4605s 4605s method = f"visit_{type(node).__name__}" 4605s visitor = getattr(self, method) 4605s > return visitor(node, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {} 4605s 4605s def visit_Expr(self, node, **kwargs): 4605s > return self.visit(node.value, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:420: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {}, method = 'visit_Compare' 4605s visitor = > 4605s 4605s def visit(self, node, **kwargs): 4605s if isinstance(node, str): 4605s clean = self.preparser(node) 4605s try: 4605s node = ast.fix_missing_locations(ast.parse(clean)) 4605s except SyntaxError as e: 4605s if any(iskeyword(x) for x in clean.split()): 4605s e.msg = "Python keyword not valid identifier in numexpr query" 4605s raise e 4605s 4605s method = f"visit_{type(node).__name__}" 4605s visitor = getattr(self, method) 4605s > return visitor(node, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {} 4605s ops = [] 4605s comps = [] 4605s op = , binop = 4605s 4605s def visit_Compare(self, node, **kwargs): 4605s ops = node.ops 4605s comps = node.comparators 4605s 4605s # base case: we have something like a CMP b 4605s if len(comps) == 1: 4605s op = self.translate_In(ops[0]) 4605s binop = ast.BinOp(op=op, left=node.left, right=comps[0]) 4605s > return self.visit(binop) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:718: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {}, method = 'visit_BinOp' 4605s visitor = > 4605s 4605s def visit(self, node, **kwargs): 4605s if isinstance(node, str): 4605s clean = self.preparser(node) 4605s try: 4605s node = ast.fix_missing_locations(ast.parse(clean)) 4605s except SyntaxError as e: 4605s if any(iskeyword(x) for x in clean.split()): 4605s e.msg = "Python keyword not valid identifier in numexpr query" 4605s raise e 4605s 4605s method = f"visit_{type(node).__name__}" 4605s visitor = getattr(self, method) 4605s > return visitor(node, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {} 4605s 4605s def visit_BinOp(self, node, **kwargs): 4605s > op, op_class, left, right = self._maybe_transform_eq_ne(node) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:531: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , left = columns, right = None 4605s 4605s def _maybe_transform_eq_ne(self, node, left=None, right=None): 4605s if left is None: 4605s left = self.visit(node.left, side="left") 4605s if right is None: 4605s > right = self.visit(node.right, side="right") 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:453: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {'side': 'right'} 4605s method = 'visit_Subscript' 4605s visitor = > 4605s 4605s def visit(self, node, **kwargs): 4605s if isinstance(node, str): 4605s clean = self.preparser(node) 4605s try: 4605s node = ast.fix_missing_locations(ast.parse(clean)) 4605s except SyntaxError as e: 4605s if any(iskeyword(x) for x in clean.split()): 4605s e.msg = "Python keyword not valid identifier in numexpr query" 4605s raise e 4605s 4605s method = f"visit_{type(node).__name__}" 4605s visitor = getattr(self, method) 4605s > return visitor(node, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {'side': 'right'} 4605s 4605s def visit_Subscript(self, node, **kwargs): 4605s # only allow simple subscripts 4605s 4605s > value = self.visit(node.value) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/pytables.py:446: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {} 4605s method = 'visit_Attribute' 4605s visitor = > 4605s 4605s def visit(self, node, **kwargs): 4605s if isinstance(node, str): 4605s clean = self.preparser(node) 4605s try: 4605s node = ast.fix_missing_locations(ast.parse(clean)) 4605s except SyntaxError as e: 4605s if any(iskeyword(x) for x in clean.split()): 4605s e.msg = "Python keyword not valid identifier in numexpr query" 4605s raise e 4605s 4605s method = f"visit_{type(node).__name__}" 4605s visitor = getattr(self, method) 4605s > return visitor(node, **kwargs) 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/expr.py:411: 4605s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 4605s 4605s self = 4605s node = , kwargs = {}, attr = 'columns' 4605s value = , ctx = 4605s resolved = 'df' 4605s 4605s def visit_Attribute(self, node, **kwargs): 4605s attr = node.attr 4605s value = node.value 4605s 4605s ctx = type(node.ctx) 4605s if ctx == ast.Load: 4605s # resolve the value 4605s resolved = self.visit(value) 4605s 4605s # try to get the value to see if we are another expression 4605s try: 4605s resolved = resolved.value 4605s except AttributeError: 4605s pass 4605s 4605s try: 4605s return self.term_type(getattr(resolved, attr), self.env) 4605s except AttributeError: 4605s # something like datetime.datetime where scope is overridden 4605s if isinstance(value, ast.Name) and value.id == attr: 4605s return resolved 4605s 4605s > raise ValueError(f"Invalid Attribute context {ctx.__name__}") 4605s E ValueError: Invalid Attribute context Load 4605s 4605s /usr/lib/python3/dist-packages/pandas/core/computation/pytables.py:486: ValueError 4605s =============================== warnings summary =============================== 4605s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_file_handling.py:37 4605s /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 4605s pytestmark = pytest.mark.single_cpu 4605s 4605s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py:29 4605s /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 4605s pytestmark = pytest.mark.single_cpu 4605s 4605s ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py:37 4605s /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 4605s pytestmark = pytest.mark.single_cpu 4605s 4605s test_file_handling.py: 191 warnings 4605s test_append.py: 21 warnings 4605s test_store.py: 45 warnings 4605s /usr/lib/python3/dist-packages/py/_process/forkedfunc.py:45: DeprecationWarning: This process (pid=17375) is multi-threaded, use of fork() may lead to deadlocks in the child. 4605s pid = os.fork() 4605s 4605s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 4605s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-d6hi0vw5' 4605s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 4605s 4605s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:431 4605s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:431: 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-files-j0szhlms' 4605s config.cache.set("cache/lastfailed", self.lastfailed) 4605s 4605s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 4605s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-6tjuj47c' 4605s session.config.cache.set(STEPWISE_CACHE_DIR, []) 4605s 4605s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 4605s =========================== short test summary info ============================ 4605s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_append.py::test_append_frame_column_oriented 4605s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/pytables/test_store.py::test_select_filter_corner 4605s ================= 2 failed, 255 passed, 263 warnings in 48.84s ================= 4609s pymysql/psycopg2 tests, which do not work in this test environment 4614s ============================= test session starts ============================== 4614s platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0 -- /usr/bin/python3.12 4614s cachedir: .pytest_cache 4614s hypothesis profile 'ci' -> deadline=None, suppress_health_check=[HealthCheck.too_slow, HealthCheck.differing_executors], database=DirectoryBasedExampleDatabase(PosixPath('/tmp/autopkgtest.7zWmJG/autopkgtest_tmp/.hypothesis/examples')) 4614s rootdir: /usr/lib/python3/dist-packages/pandas/tests 4614s plugins: hypothesis-6.105.1, asyncio-0.20.3, forked-1.6.0, localserver-0.0.0, xdist-3.6.1 4614s asyncio: mode=Mode.STRICT 4615s collecting ... collected 1479 items 4615s 4626s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[mysql_pymysql_engine] FAILED 4630s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[mysql_pymysql_conn] FAILED 4633s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[postgresql_psycopg2_engine] FAILED 4638s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[postgresql_psycopg2_conn] FAILED 4638s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[sqlite_engine] PASSED 4638s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[sqlite_conn] PASSED 4639s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[sqlite_str] PASSED 4639s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[sqlite_buildin] PASSED 4639s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[mysql_pymysql_engine] SKIPPED 4639s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[mysql_pymysql_conn] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[postgresql_psycopg2_engine] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[postgresql_psycopg2_conn] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[sqlite_engine] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[sqlite_conn] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[sqlite_str] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes[sqlite_buildin] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-mysql_pymysql_engine] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-mysql_pymysql_conn] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-postgresql_psycopg2_engine] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-postgresql_psycopg2_conn] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-sqlite_engine] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-sqlite_conn] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-sqlite_str] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NoneType-sqlite_buildin] SKIPPED 4640s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-mysql_pymysql_engine] SKIPPED 4641s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-mysql_pymysql_conn] SKIPPED 4641s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-postgresql_psycopg2_engine] SKIPPED 4641s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-postgresql_psycopg2_conn] SKIPPED 4641s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-sqlite_engine] SKIPPED 4641s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-sqlite_conn] SKIPPED 4641s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-sqlite_str] SKIPPED 4641s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float0-sqlite_buildin] SKIPPED 4641s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-mysql_pymysql_engine] SKIPPED 4641s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-mysql_pymysql_conn] SKIPPED 4641s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-postgresql_psycopg2_engine] SKIPPED 4641s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-postgresql_psycopg2_conn] SKIPPED 4641s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-sqlite_engine] SKIPPED 4641s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-sqlite_conn] SKIPPED 4642s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-sqlite_str] SKIPPED 4642s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NaTType-sqlite_buildin] SKIPPED 4642s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-mysql_pymysql_engine] SKIPPED 4642s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-mysql_pymysql_conn] SKIPPED 4642s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-postgresql_psycopg2_engine] SKIPPED 4642s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-postgresql_psycopg2_conn] SKIPPED 4642s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-sqlite_engine] SKIPPED 4642s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-sqlite_conn] SKIPPED 4643s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-sqlite_str] SKIPPED 4643s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[float1-sqlite_buildin] SKIPPED 4644s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-mysql_pymysql_engine] SKIPPED 4645s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-mysql_pymysql_conn] SKIPPED 4647s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-postgresql_psycopg2_engine] SKIPPED 4649s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-postgresql_psycopg2_conn] SKIPPED 4650s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-sqlite_engine] SKIPPED 4650s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-sqlite_conn] SKIPPED 4650s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-sqlite_str] SKIPPED 4650s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[NAType-sqlite_buildin] SKIPPED 4650s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-mysql_pymysql_engine] SKIPPED 4650s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-mysql_pymysql_conn] SKIPPED 4650s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-postgresql_psycopg2_engine] SKIPPED 4650s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-postgresql_psycopg2_conn] SKIPPED 4651s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-sqlite_engine] SKIPPED 4651s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-sqlite_conn] SKIPPED 4651s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-sqlite_str] SKIPPED 4651s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql_arrow_dtypes_missing[Decimal-sqlite_buildin] SKIPPED 4652s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-mysql_pymysql_engine] FAILED 4654s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-mysql_pymysql_conn] FAILED 4655s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-postgresql_psycopg2_engine] FAILED 4656s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-postgresql_psycopg2_conn] FAILED 4657s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-sqlite_engine] PASSED 4657s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-sqlite_conn] PASSED 4657s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-sqlite_str] PASSED 4657s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-sqlite_buildin] PASSED 4658s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-mysql_pymysql_engine] FAILED 4661s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-mysql_pymysql_conn] FAILED 4662s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-postgresql_psycopg2_engine] FAILED 4663s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-postgresql_psycopg2_conn] FAILED 4663s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-sqlite_engine] PASSED 4664s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-sqlite_conn] PASSED 4664s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-sqlite_str] PASSED 4664s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-sqlite_buildin] PASSED 4665s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-mysql_pymysql_engine] FAILED 4666s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-mysql_pymysql_conn] FAILED 4667s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-postgresql_psycopg2_engine] FAILED 4669s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-postgresql_psycopg2_conn] FAILED 4671s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-sqlite_engine] PASSED 4673s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-sqlite_conn] PASSED 4674s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-sqlite_str] PASSED 4675s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-sqlite_buildin] PASSED 4677s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-mysql_pymysql_engine] FAILED 4678s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-mysql_pymysql_conn] FAILED 4680s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-postgresql_psycopg2_engine] FAILED 4681s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-postgresql_psycopg2_conn] FAILED 4682s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-sqlite_engine] PASSED 4682s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-sqlite_conn] PASSED 4682s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-sqlite_str] PASSED 4682s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-sqlite_buildin] PASSED 4683s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[mysql_pymysql_engine] FAILED 4685s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[mysql_pymysql_conn] FAILED 4686s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[postgresql_psycopg2_engine] FAILED 4688s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[postgresql_psycopg2_conn] FAILED 4688s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[sqlite_engine] PASSED 4689s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[sqlite_conn] PASSED 4690s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[sqlite_str] PASSED 4692s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[sqlite_buildin] PASSED 4694s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[mysql_pymysql_engine] FAILED 4696s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[mysql_pymysql_conn] FAILED 4703s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[postgresql_psycopg2_engine] FAILED 4712s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[postgresql_psycopg2_conn] FAILED 4720s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[sqlite_iris_engine] PASSED 4726s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[sqlite_iris_conn] PASSED 4730s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[sqlite_iris_str] PASSED 4730s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[sqlite_buildin_iris] PASSED 4731s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[mysql_pymysql_engine] FAILED 4735s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[mysql_pymysql_conn] FAILED 4739s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[postgresql_psycopg2_engine] FAILED 4740s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[postgresql_psycopg2_conn] FAILED 4740s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[sqlite_iris_engine] PASSED 4740s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[sqlite_iris_conn] PASSED 4741s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[sqlite_iris_str] PASSED 4741s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[sqlite_buildin_iris] PASSED 4742s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[mysql_pymysql_engine] FAILED 4743s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[mysql_pymysql_conn] FAILED 4744s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[postgresql_psycopg2_engine] FAILED 4745s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[postgresql_psycopg2_conn] FAILED 4745s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[sqlite_iris_engine] PASSED 4745s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[sqlite_iris_conn] PASSED 4745s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[sqlite_iris_str] PASSED 4746s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[mysql_pymysql_engine] FAILED 4748s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[mysql_pymysql_conn] FAILED 4748s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[postgresql_psycopg2_engine] FAILED 4749s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[postgresql_psycopg2_conn] FAILED 4749s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[sqlite_iris_engine] PASSED 4750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[sqlite_iris_conn] PASSED 4750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[sqlite_iris_str] PASSED 4750s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[sqlite_buildin_iris] PASSED 4751s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[mysql_pymysql_engine] FAILED 4752s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[mysql_pymysql_conn] FAILED 4753s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[postgresql_psycopg2_engine] FAILED 4756s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[postgresql_psycopg2_conn] FAILED 4757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[sqlite_iris_engine] PASSED 4757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[sqlite_iris_conn] PASSED 4757s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[sqlite_iris_str] PASSED 4758s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[mysql_pymysql_engine] FAILED 4759s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[mysql_pymysql_conn] FAILED 4760s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[postgresql_psycopg2_engine] FAILED 4761s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[postgresql_psycopg2_conn] FAILED 4761s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[sqlite_iris_engine] PASSED 4761s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[sqlite_iris_conn] PASSED 4762s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[sqlite_iris_str] PASSED 4763s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[mysql_pymysql_engine] FAILED 4764s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[mysql_pymysql_conn] FAILED 4764s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[postgresql_psycopg2_engine] FAILED 4768s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[postgresql_psycopg2_conn] FAILED 4770s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[sqlite_engine] PASSED 4771s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[sqlite_conn] PASSED 4771s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[sqlite_str] PASSED 4772s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_default_type_conversion[mysql_pymysql_engine] FAILED 4773s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_default_type_conversion[mysql_pymysql_conn] FAILED 4774s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_procedure[mysql_pymysql_engine] FAILED 4775s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_procedure[mysql_pymysql_conn] FAILED 4776s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[2-postgresql_psycopg2_engine] FAILED 4777s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[2-postgresql_psycopg2_conn] FAILED 4778s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[Success!-postgresql_psycopg2_engine] FAILED 4780s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[Success!-postgresql_psycopg2_conn] FAILED 4783s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_do_nothing[postgresql_psycopg2_engine] FAILED 4784s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_do_nothing[postgresql_psycopg2_conn] FAILED 4785s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_update[mysql_pymysql_engine] FAILED 4786s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_update[mysql_pymysql_conn] FAILED 4787s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_view_postgres[postgresql_psycopg2_engine] FAILED 4788s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_view_postgres[postgresql_psycopg2_conn] FAILED 4788s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_view_sqlite PASSED 4789s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_execute_typeerror PASSED 4791s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_execute_deprecated PASSED 4792s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_read_sql_view PASSED 4792s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_read_sql_with_chunksize_no_result PASSED 4792s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql PASSED 4792s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_fail PASSED 4793s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_replace PASSED 4793s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_append PASSED 4793s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_type_mapping PASSED 4793s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_series PASSED 4793s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_roundtrip PASSED 4793s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_roundtrip_chunksize PASSED 4794s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_execute_sql PASSED 4795s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_date_parsing PASSED 4795s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql-SELECT * FROM types-mode0-ignore] PASSED 4796s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql-SELECT * FROM types-mode0-raise] PASSED 4796s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql-SELECT * FROM types-mode0-coerce] PASSED 4796s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql-types-sqlalchemy-ignore] PASSED 4797s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql-types-sqlalchemy-raise] PASSED 4797s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql-types-sqlalchemy-coerce] PASSED 4797s ../../../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 4797s ../../../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 4798s ../../../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 4798s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql_table-types-sqlalchemy-ignore] PASSED 4798s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql_table-types-sqlalchemy-raise] PASSED 4799s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_custom_dateparsing_error[read_sql_table-types-sqlalchemy-coerce] PASSED 4799s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_date_and_index PASSED 4800s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_timedelta PASSED 4800s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_complex_raises PASSED 4800s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_index_label[None-None-index] PASSED 4800s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_index_label[None-other_label-other_label] PASSED 4800s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_index_label[index_name-None-index_name] PASSED 4800s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_index_label[index_name-other_label-other_label] PASSED 4800s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_index_label[0-None-0] PASSED 4801s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_index_label[None-0-0] PASSED 4801s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_to_sql_index_label_multiindex PASSED 4801s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_multiindex_roundtrip PASSED 4801s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_dtype_argument[None] PASSED 4802s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_dtype_argument[int] PASSED 4802s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_dtype_argument[float] PASSED 4802s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_dtype_argument[dtype3] PASSED 4802s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_integer_col_names PASSED 4803s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_get_schema PASSED 4803s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_get_schema_with_schema PASSED 4803s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_get_schema_dtypes PASSED 4803s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_get_schema_keys PASSED 4804s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_chunksize_read PASSED 4804s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_categorical PASSED 4805s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_unicode_column_name PASSED 4805s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_escaped_table_name PASSED 4806s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_read_sql_duplicate_columns PASSED 4808s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_read_table_columns PASSED 4809s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_read_table_index_col PASSED 4811s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_read_sql_delegate PASSED 4811s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_not_reflect_all_tables PASSED 4817s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_warning_case_insensitive_table_name PASSED 4822s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_type_mapping PASSED 4827s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[int8-SMALLINT] PASSED 4830s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[Int8-SMALLINT] PASSED 4834s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[uint8-SMALLINT] PASSED 4837s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[UInt8-SMALLINT] PASSED 4839s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[int16-SMALLINT] PASSED 4841s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[Int16-SMALLINT] PASSED 4842s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[uint16-INTEGER] PASSED 4843s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[UInt16-INTEGER] PASSED 4844s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[int32-INTEGER] PASSED 4844s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[Int32-INTEGER] PASSED 4845s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[uint32-BIGINT] PASSED 4845s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[UInt32-BIGINT] PASSED 4845s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[int64-BIGINT] PASSED 4845s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[Int64-BIGINT] PASSED 4845s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_mapping[int-INTEGER] PASSED 4846s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_overload_mapping[uint64] PASSED 4847s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_sqlalchemy_integer_overload_mapping[UInt64] PASSED 4848s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_database_uri_string PASSED 4849s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_pg8000_sqlalchemy_passthrough_error PASSED 4849s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_query_by_text_obj PASSED 4849s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_query_by_select_obj PASSED 4850s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLApi::test_column_with_percentage PASSED 4850s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_read_sql_view PASSED 4851s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_read_sql_with_chunksize_no_result PASSED 4851s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql PASSED 4851s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_fail PASSED 4852s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_replace PASSED 4852s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_append PASSED 4852s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_type_mapping PASSED 4852s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_series PASSED 4852s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_roundtrip PASSED 4852s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_roundtrip_chunksize PASSED 4852s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_execute_sql PASSED 4852s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_date_parsing PASSED 4852s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql-SELECT * FROM types-mode0-ignore] PASSED 4852s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql-SELECT * FROM types-mode0-raise] PASSED 4853s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql-SELECT * FROM types-mode0-coerce] PASSED 4853s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql-types-sqlalchemy-ignore] PASSED 4853s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql-types-sqlalchemy-raise] PASSED 4853s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql-types-sqlalchemy-coerce] PASSED 4853s ../../../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 4853s ../../../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 4853s ../../../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 4854s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql_table-types-sqlalchemy-ignore] PASSED 4854s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql_table-types-sqlalchemy-raise] PASSED 4854s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_custom_dateparsing_error[read_sql_table-types-sqlalchemy-coerce] PASSED 4854s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_date_and_index PASSED 4854s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_timedelta PASSED 4855s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_complex_raises PASSED 4855s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_index_label[None-None-index] PASSED 4857s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_index_label[None-other_label-other_label] PASSED 4861s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_index_label[index_name-None-index_name] PASSED 4864s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_index_label[index_name-other_label-other_label] PASSED 4868s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_index_label[0-None-0] PASSED 4871s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_index_label[None-0-0] PASSED 4873s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_to_sql_index_label_multiindex PASSED 4876s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_multiindex_roundtrip PASSED 4882s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_dtype_argument[None] PASSED 4888s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_dtype_argument[int] PASSED 4893s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_dtype_argument[float] PASSED 4896s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_dtype_argument[dtype3] PASSED 4900s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_integer_col_names PASSED 4902s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_get_schema PASSED 4903s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_get_schema_with_schema PASSED 4905s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_get_schema_dtypes PASSED 4908s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_get_schema_keys PASSED 4911s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_chunksize_read PASSED 4914s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_categorical PASSED 4917s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_unicode_column_name PASSED 4920s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_escaped_table_name PASSED 4923s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_read_sql_duplicate_columns PASSED 4925s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_sql_open_close PASSED 4925s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_con_string_import_error SKIPPED 4925s ../../../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 4927s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_read_sql_delegate PASSED 4929s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_get_schema2 PASSED 4930s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallbackApi::test_sqlite_type_mapping PASSED 4933s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_parameter PASSED 4933s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_named_parameter PASSED 4933s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_to_sql_empty PASSED 4933s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_create_table PASSED 4934s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_drop_table PASSED 4934s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_roundtrip PASSED 4934s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_execute_sql PASSED 4934s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_table PASSED 4934s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_table_columns PASSED 4934s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_table_absent_raises PASSED 4935s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_bigint PASSED 4938s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_datetime_with_timezone XFAIL 4939s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_datetime_with_timezone_roundtrip PASSED 4940s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_out_of_bounds_datetime PASSED 4940s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_naive_datetimeindex_roundtrip PASSED 4940s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_date_parsing PASSED 4941s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_datetime PASSED 4941s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_datetime_NaT PASSED 4941s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_datetime_date PASSED 4941s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_datetime_time PASSED 4942s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_mixed_dtype_insert PASSED 4942s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_nan_numeric PASSED 4942s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_nan_fullcolumn PASSED 4943s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_nan_string PASSED 4943s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_to_sql_save_index PASSED 4943s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_transactions PASSED 4943s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_get_schema_create_table PASSED 4943s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_dtype PASSED 4944s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_notna_dtype PASSED 4945s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_double_precision PASSED 4945s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_connectable_issue_example PASSED 4946s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_to_sql_with_negative_npinf[input0] PASSED 4946s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_to_sql_with_negative_npinf[input1] PASSED 4947s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_to_sql_with_negative_npinf[input2] PASSED 4948s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_temporary_table PASSED 4950s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_invalid_engine PASSED 4950s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_options_sqlalchemy PASSED 4951s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_options_auto PASSED 4951s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_options_get_engine PASSED 4951s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_get_engine_auto_error_message PASSED 4951s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[python-numpy_nullable-read_sql] PASSED 4952s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[python-numpy_nullable-read_sql_query] PASSED 4952s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[python-pyarrow-read_sql] SKIPPED 4952s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[python-pyarrow-read_sql_query] SKIPPED 4952s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[pyarrow-numpy_nullable-read_sql] SKIPPED 4952s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[pyarrow-numpy_nullable-read_sql_query] SKIPPED 4952s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[pyarrow-pyarrow-read_sql] SKIPPED 4952s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend[pyarrow-pyarrow-read_sql_query] SKIPPED 4952s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql] PASSED 4952s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql_table] PASSED 4953s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql_query] PASSED 4953s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_chunksize_empty_dtypes PASSED 4953s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype[read_sql-_NoDefault.no_default] PASSED 4953s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype[read_sql-numpy_nullable] PASSED 4953s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype[read_sql_query-_NoDefault.no_default] PASSED 4953s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype[read_sql_query-numpy_nullable] PASSED 4953s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_keyword_deprecation PASSED 4954s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_default_type_conversion PASSED 4954s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_default_date_load PASSED 4954s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_bigint_warning PASSED 4955s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_valueerror_exception PASSED 4955s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_row_object_is_named_tuple PASSED 4955s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend_table[python-read_sql] PASSED 4956s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend_table[python-read_sql_table] PASSED 4956s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend_table[pyarrow-read_sql] SKIPPED 4956s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_dtype_backend_table[pyarrow-read_sql_table] SKIPPED 4956s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_read_sql_string_inference SKIPPED 4957s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteAlchemy::test_roundtripping_datetimes PASSED 4957s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_roundtripping_datetimes_detect_types PASSED 4957s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_parameter SKIPPED 4957s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_named_parameter SKIPPED 4957s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_to_sql_empty SKIPPED 4958s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_create_table SKIPPED 4958s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_drop_table SKIPPED 4958s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_roundtrip SKIPPED 4958s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_execute_sql SKIPPED 4959s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_table SKIPPED 4959s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_table_columns SKIPPED 4959s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_table_absent_raises SKIPPED 4959s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_bigint SKIPPED 4959s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_default_date_load SKIPPED 4959s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_datetime_with_timezone SKIPPED 4960s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_datetime_with_timezone_roundtrip SKIPPED 4960s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_out_of_bounds_datetime SKIPPED 4960s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_naive_datetimeindex_roundtrip SKIPPED 4960s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_date_parsing SKIPPED 4960s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_datetime SKIPPED 4961s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_datetime_NaT SKIPPED 4961s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_datetime_date SKIPPED 4961s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_datetime_time SKIPPED 4962s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_mixed_dtype_insert SKIPPED 4962s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_nan_numeric SKIPPED 4962s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_nan_fullcolumn SKIPPED 4962s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_nan_string SKIPPED 4962s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_to_sql_save_index SKIPPED 4963s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_transactions SKIPPED 4965s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_get_schema_create_table SKIPPED 4968s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_dtype SKIPPED 4969s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_notna_dtype SKIPPED 4970s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_double_precision SKIPPED 4970s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_connectable_issue_example SKIPPED 4970s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_to_sql_with_negative_npinf[input0] SKIPPED 4971s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_to_sql_with_negative_npinf[input1] SKIPPED 4971s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_to_sql_with_negative_npinf[input2] SKIPPED 4972s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_temporary_table SKIPPED 4975s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_invalid_engine SKIPPED 4981s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_options_sqlalchemy SKIPPED 4987s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_options_auto SKIPPED 4993s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_options_get_engine SKIPPED 5000s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_get_engine_auto_error_message SKIPPED 5005s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[python-numpy_nullable-read_sql] SKIPPED 5010s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[python-numpy_nullable-read_sql_query] SKIPPED 5012s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[python-pyarrow-read_sql] SKIPPED 5013s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[python-pyarrow-read_sql_query] SKIPPED 5015s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[pyarrow-numpy_nullable-read_sql] SKIPPED 5017s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[pyarrow-numpy_nullable-read_sql_query] SKIPPED 5019s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[pyarrow-pyarrow-read_sql] SKIPPED 5021s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend[pyarrow-pyarrow-read_sql_query] SKIPPED 5029s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend_table[python-numpy_nullable-read_sql] SKIPPED 5035s ../../../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 5037s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend_table[python-pyarrow-read_sql] SKIPPED 5038s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend_table[python-pyarrow-read_sql_table] SKIPPED 5040s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend_table[pyarrow-numpy_nullable-read_sql] SKIPPED 5043s ../../../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 5045s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend_table[pyarrow-pyarrow-read_sql] SKIPPED 5047s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype_backend_table[pyarrow-pyarrow-read_sql_table] SKIPPED 5052s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql] SKIPPED 5055s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql_table] SKIPPED 5060s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql_query] SKIPPED 5065s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_chunksize_empty_dtypes SKIPPED 5071s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype[read_sql-_NoDefault.no_default] SKIPPED 5077s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype[read_sql-numpy_nullable] SKIPPED 5084s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype[read_sql_query-_NoDefault.no_default] SKIPPED 5090s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_read_sql_dtype[read_sql_query-numpy_nullable] SKIPPED 5095s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestMySQLAlchemy::test_default_type_conversion SKIPPED 5099s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_parameter SKIPPED 5102s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_named_parameter SKIPPED 5102s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_to_sql_empty SKIPPED 5102s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_create_table SKIPPED 5103s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_drop_table SKIPPED 5103s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_roundtrip SKIPPED 5104s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_execute_sql SKIPPED 5105s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_table SKIPPED 5106s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_table_columns SKIPPED 5106s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_table_absent_raises SKIPPED 5106s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_default_type_conversion SKIPPED 5106s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_bigint SKIPPED 5107s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_default_date_load SKIPPED 5107s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_datetime_with_timezone SKIPPED 5107s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_datetime_with_timezone_roundtrip SKIPPED 5107s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_out_of_bounds_datetime SKIPPED 5108s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_naive_datetimeindex_roundtrip SKIPPED 5108s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_date_parsing SKIPPED 5109s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_datetime SKIPPED 5110s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_datetime_NaT SKIPPED 5110s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_datetime_date SKIPPED 5110s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_datetime_time SKIPPED 5110s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_mixed_dtype_insert SKIPPED 5111s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_nan_numeric SKIPPED 5112s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_nan_fullcolumn SKIPPED 5112s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_nan_string SKIPPED 5113s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_to_sql_save_index SKIPPED 5114s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_transactions SKIPPED 5114s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_get_schema_create_table SKIPPED 5115s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_dtype SKIPPED 5115s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_notna_dtype SKIPPED 5116s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_double_precision SKIPPED 5116s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_connectable_issue_example SKIPPED 5116s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_to_sql_with_negative_npinf[input0] SKIPPED 5116s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_to_sql_with_negative_npinf[input1] SKIPPED 5117s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_to_sql_with_negative_npinf[input2] SKIPPED 5117s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_temporary_table SKIPPED 5118s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_invalid_engine SKIPPED 5118s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_options_sqlalchemy SKIPPED 5119s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_options_auto SKIPPED 5120s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_options_get_engine SKIPPED 5120s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_get_engine_auto_error_message SKIPPED 5121s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[python-numpy_nullable-read_sql] SKIPPED 5121s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[python-numpy_nullable-read_sql_query] SKIPPED 5121s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[python-pyarrow-read_sql] SKIPPED 5121s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[python-pyarrow-read_sql_query] SKIPPED 5121s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[pyarrow-numpy_nullable-read_sql] SKIPPED 5121s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[pyarrow-numpy_nullable-read_sql_query] SKIPPED 5121s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[pyarrow-pyarrow-read_sql] SKIPPED 5121s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend[pyarrow-pyarrow-read_sql_query] SKIPPED 5122s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend_table[python-numpy_nullable-read_sql] SKIPPED 5122s ../../../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 5122s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend_table[python-pyarrow-read_sql] SKIPPED 5122s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend_table[python-pyarrow-read_sql_table] SKIPPED 5122s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend_table[pyarrow-numpy_nullable-read_sql] SKIPPED 5122s ../../../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 5122s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend_table[pyarrow-pyarrow-read_sql] SKIPPED 5122s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype_backend_table[pyarrow-pyarrow-read_sql_table] SKIPPED 5123s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql] SKIPPED 5124s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql_table] SKIPPED 5124s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_invalid_dtype_backend_table[read_sql_query] SKIPPED 5125s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_chunksize_empty_dtypes SKIPPED 5125s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype[read_sql-_NoDefault.no_default] SKIPPED 5125s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype[read_sql-numpy_nullable] SKIPPED 5125s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype[read_sql_query-_NoDefault.no_default] SKIPPED 5126s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_read_sql_dtype[read_sql_query-numpy_nullable] SKIPPED 5126s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_schema_support SKIPPED 5126s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestPostgreSQLAlchemy::test_self_join_date_columns SKIPPED 5126s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_read_sql_parameter PASSED 5126s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_read_sql_named_parameter PASSED 5126s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_to_sql_empty PASSED 5127s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_create_and_drop_table PASSED 5127s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_roundtrip PASSED 5127s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_execute_sql PASSED 5127s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_datetime_date PASSED 5127s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_datetime_time[False] PASSED 5127s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_datetime_time[True] PASSED 5127s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_to_sql_save_index PASSED 5127s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_transactions PASSED 5127s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_dtype PASSED 5127s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_notna_dtype PASSED 5128s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestSQLiteFallback::test_illegal_names PASSED 5128s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_basic PASSED 5128s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_write_row_by_row PASSED 5128s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_execute PASSED 5128s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_schema PASSED 5128s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_execute_fail PASSED 5128s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_execute_closed_connection PASSED 5128s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_keyword_as_column_names PASSED 5128s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_onecolumn_of_integer PASSED 5129s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::TestXSQLite::test_if_exists PASSED 5129s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_readonly[True] PASSED 5129s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_readonly[False] PASSED 5129s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[True-index-%d/%m/%Y-expected0] PASSED 5129s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[True-index-%m/%d/%Y-expected1] PASSED 5129s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[True-series-%d/%m/%Y-expected0] PASSED 5129s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[True-series-%m/%d/%Y-expected1] PASSED 5129s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[False-index-%d/%m/%Y-expected0] PASSED 5129s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[False-index-%m/%d/%Y-expected1] PASSED 5129s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[False-series-%d/%m/%Y-expected0] PASSED 5129s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format[False-series-%m/%d/%Y-expected1] PASSED 5129s ../../../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 5129s ../../../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 5129s ../../../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 5129s ../../../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 5130s ../../../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 5130s ../../../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 5130s ../../../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 5130s ../../../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 5130s ../../../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 5130s ../../../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 5130s ../../../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 5130s ../../../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 5130s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD[True] PASSED 5130s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD[False] PASSED 5130s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_nat[True] PASSED 5130s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_nat[False] PASSED 5130s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMM_with_nat[True] PASSED 5130s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMM_with_nat[False] PASSED 5130s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_ignore[True] PASSED 5130s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_ignore[False] PASSED 5130s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_ignore_with_outofbounds[True] PASSED 5130s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_ignore_with_outofbounds[False] PASSED 5130s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_coercion[True] PASSED 5131s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_coercion[False] PASSED 5131s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s0] PASSED 5131s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s1] PASSED 5131s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s2] PASSED 5131s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s3] PASSED 5131s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s4] PASSED 5131s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s5] PASSED 5131s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s6] PASSED 5131s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_with_none[input_s7] PASSED 5131s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_overflow[input_s0-expected0] PASSED 5131s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_overflow[input_s1-expected1] PASSED 5131s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_overflow[input_s2-expected2] PASSED 5131s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_YYYYMMDD_overflow[input_s3-expected3] PASSED 5131s ../../../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 5131s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_NA[data1-None-expected1] PASSED 5131s ../../../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 5132s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_NA[data3-%y%m%d-expected3] PASSED 5132s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_NA[data4-%d%m%y-expected4] PASSED 5132s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_NA[data5-None-expected5] PASSED 5132s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_NA[data6-%Y%m%d-expected6] PASSED 5132s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_NA_with_warning PASSED 5133s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_integer[True] PASSED 5133s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_integer[False] PASSED 5134s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_int_to_datetime_format_YYYYMMDD_typeerror[20121030-expected0] PASSED 5134s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_int_to_datetime_format_YYYYMMDD_typeerror[199934-expected1] PASSED 5134s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_int_to_datetime_format_YYYYMMDD_typeerror[2012010101-2012010101] PASSED 5134s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_int_to_datetime_format_YYYYMMDD_typeerror[20129930-20129930] PASSED 5134s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_int_to_datetime_format_YYYYMMDD_typeerror[2012993-2012993] PASSED 5134s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_int_to_datetime_format_YYYYMMDD_typeerror[2121-2121] PASSED 5134s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_microsecond[True] PASSED 5134s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_format_microsecond[False] PASSED 5134s ../../../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 5135s ../../../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 5135s ../../../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 5136s ../../../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 5137s ../../../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 5138s ../../../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 5138s ../../../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 5138s ../../../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 5138s ../../../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 5139s ../../../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 5139s ../../../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 5139s ../../../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 5139s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_non_exact[True] SKIPPED 5139s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_with_non_exact[False] SKIPPED 5139s ../../../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 5139s ../../../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 5139s ../../../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 5139s ../../../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 5139s ../../../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 5139s ../../../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 5139s ../../../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 5139s ../../../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 5140s ../../../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 5140s ../../../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 5140s ../../../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 5140s ../../../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 5140s ../../../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 5140s ../../../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 5140s ../../../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 5140s ../../../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 5141s ../../../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 5141s ../../../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 5141s ../../../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 5141s ../../../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 5141s ../../../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 5142s ../../../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 5142s ../../../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 5142s ../../../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 5142s ../../../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 5142s ../../../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 5142s ../../../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 5142s ../../../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 5142s ../../../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 5143s ../../../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 5143s ../../../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 5143s ../../../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 5143s ../../../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 5143s ../../../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 5144s ../../../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 5144s ../../../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 5144s ../../../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 5144s ../../../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 5144s ../../../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 5144s ../../../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 5144s ../../../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 5144s ../../../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 5145s ../../../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 5146s ../../../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 5146s ../../../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 5146s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_timezone_malformed[+0] PASSED 5146s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_timezone_malformed[-1foo] PASSED 5147s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_timezone_malformed[UTCbar] PASSED 5147s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_timezone_malformed[:10] PASSED 5148s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_timezone_malformed[+01:000:01] PASSED 5148s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_timezone_malformed[] PASSED 5148s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestTimeConversionFormats::test_to_datetime_parse_timezone_keeps_name PASSED 5148s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_overflow PASSED 5148s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_datetime_and_string PASSED 5148s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_date_and_string[ISO8601] PASSED 5148s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_date_and_string[non-ISO8601] PASSED 5148s ../../../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 5148s ../../../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 5148s ../../../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 5149s ../../../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 5149s ../../../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 5149s ../../../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 5149s ../../../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 5149s ../../../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 5149s ../../../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 5149s ../../../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 5149s ../../../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 5150s ../../../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 5150s ../../../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 5150s ../../../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 5150s ../../../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 5150s ../../../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 5150s ../../../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 5150s ../../../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 5150s ../../../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 5151s ../../../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 5151s ../../../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 5151s ../../../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 5152s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_offsets_with_none[ISO8601, UTC] PASSED 5152s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_offsets_with_none[non-ISO8601, UTC] PASSED 5152s ../../../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 5152s ../../../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 5153s ../../../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 5153s ../../../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 5153s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_np_str PASSED 5153s ../../../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 5153s ../../../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 5153s ../../../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 5154s ../../../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 5154s ../../../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 5154s ../../../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 5154s ../../../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 5154s ../../../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 5154s ../../../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 5154s ../../../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 5154s ../../../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 5154s ../../../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 5154s ../../../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 5154s ../../../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 5154s ../../../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 5154s ../../../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 5154s ../../../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 5155s ../../../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 5155s ../../../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 5155s ../../../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 5155s ../../../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 5155s ../../../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 5155s ../../../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 5155s ../../../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 5156s ../../../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 5156s ../../../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 5156s ../../../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 5157s ../../../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 5157s ../../../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 5157s ../../../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 5157s ../../../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 5157s ../../../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 5158s ../../../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 5158s ../../../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 5158s ../../../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 5158s ../../../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 5159s ../../../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 5160s ../../../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 5163s ../../../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 5165s ../../../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 5167s ../../../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 5170s ../../../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 5173s ../../../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 5176s ../../../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 5180s ../../../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 5183s ../../../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 5187s ../../../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 5189s ../../../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 5192s ../../../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 5196s ../../../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 5198s ../../../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 5200s ../../../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 5202s ../../../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 5204s ../../../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 5205s ../../../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 5206s ../../../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 5208s ../../../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 5210s ../../../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 5211s ../../../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 5213s ../../../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 5216s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dtarr[None] PASSED 5221s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dtarr[US/Central] PASSED 5225s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[None-True-Series] SKIPPED 5227s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[None-True-Index] SKIPPED 5231s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[None-False-Series] SKIPPED 5234s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[None-False-Index] SKIPPED 5237s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[US/Central-True-Series] SKIPPED 5241s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[US/Central-True-Index] SKIPPED 5244s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[US/Central-False-Series] SKIPPED 5247s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_arrow[US/Central-False-Index] SKIPPED 5250s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_pydatetime PASSED 5253s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_YYYYMMDD PASSED 5256s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_unparsable_ignore PASSED 5260s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_now PASSED 5263s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_today[Pacific/Auckland] PASSED 5266s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_today[US/Samoa] PASSED 5270s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_today_now_unicode_bytes[now] PASSED 5274s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_today_now_unicode_bytes[today] PASSED 5278s ../../../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 5282s ../../../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 5285s ../../../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 5289s ../../../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 5291s ../../../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 5294s ../../../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 5295s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s[True-dt0] PASSED 5295s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s[True-dt1] PASSED 5296s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s[False-dt0] PASSED 5296s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64s[False-dt1] PASSED 5296s ../../../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 5296s ../../../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 5296s ../../../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 5296s ../../../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 5296s ../../../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 5296s ../../../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 5296s ../../../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 5297s ../../../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 5297s ../../../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 5297s ../../../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 5297s ../../../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 5297s ../../../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 5297s ../../../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 5297s ../../../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 5297s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64d_out_of_bounds[True] PASSED 5297s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_dt64d_out_of_bounds[False] PASSED 5297s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_array_of_dt64s[True-s] PASSED 5297s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_array_of_dt64s[True-D] PASSED 5298s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_array_of_dt64s[False-s] PASSED 5298s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_array_of_dt64s[False-D] PASSED 5299s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_out_of_bounds_errors_ignore PASSED 5299s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz[True] PASSED 5299s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz[False] PASSED 5299s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz_mixed[True] PASSED 5299s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz_mixed[False] PASSED 5299s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_different_offsets[True] PASSED 5300s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_different_offsets[False] PASSED 5300s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz_pytz[True] PASSED 5300s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz_pytz[False] PASSED 5300s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[True-Index-DatetimeIndex] PASSED 5300s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[True-list-DatetimeIndex] PASSED 5300s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[True-array-DatetimeIndex] PASSED 5300s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[True-Series-Series] PASSED 5301s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[False-Index-DatetimeIndex] PASSED 5301s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[False-list-DatetimeIndex] PASSED 5301s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[False-array-DatetimeIndex] PASSED 5302s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true[False-Series-Series] PASSED 5302s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_scalar[True-20100102 121314-expected0] PASSED 5303s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_scalar[True-20100102 121315-expected1] PASSED 5304s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_scalar[False-20100102 121314-expected0] PASSED 5305s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_scalar[False-20100102 121315-expected1] PASSED 5306s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_with_series_single_value[True] PASSED 5308s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_with_series_single_value[False] PASSED 5309s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_with_series_tzaware_string[True] PASSED 5310s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc_true_with_series_tzaware_string[False] PASSED 5310s ../../../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 5310s ../../../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 5311s ../../../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 5311s ../../../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 5312s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz_psycopg2[True] PASSED 5312s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_tz_psycopg2[False] PASSED 5313s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_bool[True-True] PASSED 5313s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_bool[True-False] PASSED 5313s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_bool[False-True] PASSED 5313s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_bool[False-False] PASSED 5313s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_bool_arrays_mixed[True] PASSED 5316s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_bool_arrays_mixed[False] PASSED 5316s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_datatype[bool] PASSED 5316s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_datatype[to_datetime] PASSED 5316s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_invalid_format_raises[coerce] PASSED 5316s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_invalid_format_raises[raise] PASSED 5316s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_invalid_format_raises[ignore] PASSED 5317s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_scalar[None-a] PASSED 5317s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_scalar[None-00:01:99] PASSED 5317s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_scalar[%H:%M:%S-a] PASSED 5317s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_scalar[%H:%M:%S-00:01:99] PASSED 5318s ../../../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 5319s ../../../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 5321s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_index[None-values0] PASSED 5323s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_index[None-values1] PASSED 5326s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_index[None-values2] PASSED 5327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_index[%H:%M:%S-values0] PASSED 5327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_index[%H:%M:%S-values1] PASSED 5327s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_datetime_invalid_index[%H:%M:%S-values2] PASSED 5328s ../../../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 5328s ../../../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 5329s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[list-None-True] PASSED 5330s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[list-None-None] PASSED 5330s ../../../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 5331s ../../../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 5332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[tuple-None-True] PASSED 5332s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[tuple-None-None] PASSED 5332s ../../../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 5333s ../../../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 5334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[array-None-True] PASSED 5334s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[array-None-None] PASSED 5334s ../../../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 5335s ../../../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 5336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[Index-None-True] PASSED 5336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[Index-None-None] PASSED 5336s ../../../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 5336s ../../../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 5336s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[deque-None-True] PASSED 5337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache[deque-None-None] PASSED 5337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_from_deque PASSED 5337s ../../../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 5337s ../../../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 5337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache_series[None-True] PASSED 5337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache_series[None-None] PASSED 5337s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_cache_scalar PASSED 5338s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_convert_object_to_datetime_with_cache[datetimelikes0-expected_values0] PASSED 5338s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_convert_object_to_datetime_with_cache[datetimelikes1-expected_values1] PASSED 5338s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_convert_object_to_datetime_with_cache[datetimelikes2-expected_values2] PASSED 5338s ../../../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 5339s ../../../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 5339s ../../../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 5339s ../../../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 5339s ../../../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 5339s ../../../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 5340s ../../../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 5340s ../../../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 5340s ../../../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 5340s ../../../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 5340s ../../../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 5340s ../../../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 5340s ../../../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 5340s ../../../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 5340s ../../../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 5340s ../../../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 5341s ../../../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 5342s ../../../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 5342s ../../../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 5343s ../../../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 5343s ../../../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 5343s ../../../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 5343s ../../../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 5343s ../../../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 5343s ../../../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 5343s ../../../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 5345s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_coerce PASSED 5346s ../../../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 5346s ../../../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 5347s ../../../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 5347s ../../../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 5347s ../../../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 5348s ../../../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 5348s ../../../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 5349s ../../../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 5349s ../../../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 5349s ../../../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 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_malformed_no_raise[coerce-expected0] PASSED 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_malformed_no_raise[ignore-expected1] PASSED 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_malformed_raise PASSED 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_iso_8601_strings_with_same_offset PASSED 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_iso_8601_strings_with_different_offsets PASSED 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_iso_8601_strings_with_different_offsets_utc PASSED 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_mixed_offsets_with_native_datetime_raises PASSED 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_non_iso_strings_with_tz_offset PASSED 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_timestamp_utc_true[ts0-expected0] PASSED 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_timestamp_utc_true[ts1-expected1] PASSED 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_with_format_out_of_bounds[00010101] PASSED 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_with_format_out_of_bounds[13000101] PASSED 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_with_format_out_of_bounds[30000101] PASSED 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_with_format_out_of_bounds[99990101] PASSED 5350s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_utc PASSED 5351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_fixed_offset PASSED 5351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_offsets_with_utc_false_deprecated[date0] PASSED 5351s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_offsets_with_utc_false_deprecated[date1] PASSED 5352s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetime::test_to_datetime_mixed_offsets_with_utc_false_deprecated[date2] PASSED 5352s ../../../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 5353s ../../../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 5357s ../../../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 5358s ../../../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 5359s ../../../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 5359s ../../../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 5360s ../../../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 5361s ../../../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 5362s ../../../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 5363s ../../../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 5363s ../../../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 5363s ../../../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 5363s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit[True] PASSED 5363s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit[False] PASSED 5363s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_array_mixed_nans[True] PASSED 5363s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_array_mixed_nans[False] PASSED 5363s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_array_mixed_nans_large_int[True] PASSED 5363s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_array_mixed_nans_large_int[False] PASSED 5363s ../../../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 5363s ../../../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 5363s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_consistency[True-raise] PASSED 5363s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_consistency[True-coerce] PASSED 5364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_consistency[True-ignore] PASSED 5364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_consistency[False-raise] PASSED 5364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_consistency[False-coerce] PASSED 5364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_consistency[False-ignore] PASSED 5364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[True-float64-ignore] PASSED 5364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[True-float64-raise] PASSED 5364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[True-float64-coerce] PASSED 5364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[True-int64-ignore] PASSED 5364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[True-int64-raise] PASSED 5364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[True-int64-coerce] PASSED 5364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[False-float64-ignore] PASSED 5364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[False-float64-raise] PASSED 5364s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[False-float64-coerce] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[False-int64-ignore] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[False-int64-raise] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric[False-int64-coerce] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric_coerce[True-exp0-arr0-UserWarning] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric_coerce[True-exp1-arr1-None] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric_coerce[False-exp0-arr0-UserWarning] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_with_numeric_coerce[False-exp1-arr1-None] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_mixed[True-arr0] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_mixed[True-arr1] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_mixed[False-arr0] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_mixed[False-arr1] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_rounding[True] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_rounding[False] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_ignore_keeps_name[True] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_unit_ignore_keeps_name[False] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_errors_ignore_utc_true PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit[int] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit[float] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit_with_nulls[-9223372036854775808] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit_with_nulls[nan] PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit_fractional_seconds PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit_na_values PASSED 5365s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit_invalid[foo] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_datetime_unit_invalid[111111111] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_timestamp_unit_coerce[foo] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_to_timestamp_unit_coerce[111111111] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeUnit::test_float_to_datetime_raise_near_bounds PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe[True] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe[False] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_dict_with_constructable[True] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_dict_with_constructable[False] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_field_aliases_column_subset[True-unit0] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_field_aliases_column_subset[True-unit1] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_field_aliases_column_subset[False-unit0] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_field_aliases_column_subset[False-unit1] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_field_aliases[True] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_field_aliases[False] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_str_dtype[True] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_str_dtype[False] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_coerce[True] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_coerce[False] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_extra_keys_raisesm[True] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_extra_keys_raisesm[False] PASSED 5366s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[True-cols0] PASSED 5367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[True-cols1] PASSED 5367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[True-cols2] PASSED 5367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[True-cols3] PASSED 5367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[True-cols4] PASSED 5367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[False-cols0] PASSED 5367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[False-cols1] PASSED 5367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[False-cols2] PASSED 5367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[False-cols3] PASSED 5367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_missing_keys_raises[False-cols4] PASSED 5367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_duplicate_columns_raises[True] PASSED 5367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_duplicate_columns_raises[False] PASSED 5367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_int16[True] PASSED 5367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_int16[False] PASSED 5367s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_mixed[True] PASSED 5368s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_mixed[False] PASSED 5368s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_float[True] PASSED 5368s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_float[False] PASSED 5368s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeDataFrame::test_dataframe_utc_true PASSED 5368s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_barely_out_of_bounds PASSED 5368s ../../../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 5368s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601[True-20121001-2012-10-01] PASSED 5368s ../../../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 5368s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601[False-20121001-2012-10-01] PASSED 5368s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[True-2012-%Y-%m] PASSED 5368s ../../../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 5368s ../../../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 5368s ../../../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 5368s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[True-0-%Y-%m-%d] PASSED 5369s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[False-2012-%Y-%m] PASSED 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_fails[False-0-%Y-%m-%d] PASSED 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_exact_fails[0-%Y-%m-%d] PASSED 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_separator[2020-01-%Y/%m] PASSED 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_valid[2020-01-%Y-%m] PASSED 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../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 5369s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_iso8601_non_padded[2020-1-%Y-%m] PASSED 5370s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../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 5370s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_default[True] PASSED 5370s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_default[False] PASSED 5370s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_respects_dayfirst[True] XFAIL 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_respects_dayfirst[False] XFAIL 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_on_datetime64_series[True] PASSED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_on_datetime64_series[False] PASSED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_space_in_series[True] PASSED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_space_in_series[False] PASSED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply[True] SKIPPED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply[False] SKIPPED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_timezone_name PASSED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply_with_empty_str[True-raise] SKIPPED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply_with_empty_str[True-coerce] SKIPPED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply_with_empty_str[True-ignore] SKIPPED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply_with_empty_str[False-raise] SKIPPED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply_with_empty_str[False-coerce] SKIPPED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_with_apply_with_empty_str[False-ignore] SKIPPED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_empty_stt[True] PASSED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_empty_stt[False] PASSED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_empty_str_list[True] PASSED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_empty_str_list[False] PASSED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_zero[True] PASSED 5371s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_zero[False] PASSED 5372s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_strings[True] PASSED 5372s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_strings[False] PASSED 5372s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_strings_variation[True] PASSED 5372s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_strings_variation[False] PASSED 5372s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_strings_vs_constructor[result0] PASSED 5372s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_strings_vs_constructor[result1] PASSED 5372s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_unprocessable_input[True] PASSED 5372s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_unprocessable_input[False] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_unhashable_input[True] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_unhashable_input[False] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_other_datetime64_units PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_list_of_integers PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_overflow PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_invalid_operation[True] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_invalid_operation[False] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_na_nat_conversion[True] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_na_nat_conversion[False] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_na_nat_conversion_malformed[True] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_na_nat_conversion_malformed[False] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_na_nat_conversion_with_name[True] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_string_na_nat_conversion_with_name[False] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[True-h] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[True-m] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[True-s] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[True-ms] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[True-us] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[True-ns] PASSED 5373s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[False-h] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[False-m] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[False-s] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[False-ms] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[False-us] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dti_constructor_numpy_timeunits[False-ns] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dayfirst[True] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dayfirst[False] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dayfirst_warnings_valid_input PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_dayfirst_warnings_invalid_input PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_dta_tz[DatetimeIndex] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeMisc::test_to_datetime_dta_tz[DatetimeArray] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array[test_list0] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array[test_list1] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array[test_list2] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array[test_list3] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array[test_list4] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array[test_list5] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array[test_list6] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestGuessDatetimeFormat::test_guess_datetime_format_for_array_all_nans SKIPPED 5374s ../../../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 5374s ../../../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 5374s ../../../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 5374s ../../../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 5374s ../../../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 5374s ../../../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 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_inconsistent_format[True] PASSED 5374s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_inconsistent_format[False] PASSED 5375s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_consistent_format[True] PASSED 5375s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_consistent_format[False] PASSED 5375s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_series_with_nans[True] PASSED 5375s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_series_with_nans[False] PASSED 5375s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_series_start_with_nans[True] PASSED 5375s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_series_start_with_nans[False] PASSED 5376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_infer_datetime_format_tz_name[UTC-0] PASSED 5376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_infer_datetime_format_tz_name[UTC-3-180] PASSED 5376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_infer_datetime_format_tz_name[UTC+3--180] PASSED 5376s ../../../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 5376s ../../../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 5376s ../../../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 5376s ../../../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 5376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_iso8601_noleading_0s[True-None] PASSED 5376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_iso8601_noleading_0s[True-%Y-%m-%d] PASSED 5376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_iso8601_noleading_0s[False-None] PASSED 5376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_to_datetime_iso8601_noleading_0s[False-%Y-%m-%d] PASSED 5376s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestToDatetimeInferFormat::test_parse_dates_infer_datetime_format_warning PASSED 5376s ../../../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 5376s ../../../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 5376s ../../../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 5376s ../../../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 5377s ../../../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 5377s ../../../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 5377s ../../../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 5377s ../../../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 5377s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise[True] PASSED 5377s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDaysInMonth::test_day_not_in_month_raise[False] PASSED 5377s ../../../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 5377s ../../../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 5377s ../../../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 5377s ../../../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 5377s ../../../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 5377s ../../../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 5377s ../../../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 5377s ../../../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 5378s ../../../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 5378s ../../../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 5379s ../../../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 5380s ../../../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 5381s ../../../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 5382s ../../../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 5382s ../../../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 5382s ../../../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 5382s ../../../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 5382s ../../../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 5383s ../../../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 5383s ../../../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 5383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2011-01-01-expected0] PASSED 5383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2Q2005-expected1] PASSED 5383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2Q05-expected2] PASSED 5383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005Q1-expected3] PASSED 5383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-05Q1-expected4] PASSED 5383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2011Q3-expected5] PASSED 5383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-11Q3-expected6] PASSED 5383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-3Q2011-expected7] PASSED 5383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-3Q11-expected8] PASSED 5383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2000Q4-expected9] PASSED 5383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-00Q4-expected10] PASSED 5383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-4Q2000-expected11] PASSED 5383s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-4Q00-expected12] PASSED 5384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2000q4-expected13] PASSED 5384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2000-Q4-expected14] PASSED 5384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-00-Q4-expected15] PASSED 5384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-4Q-2000-expected16] PASSED 5384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-4Q-00-expected17] PASSED 5384s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-00q4-expected18] PASSED 5385s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005-expected19] PASSED 5386s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005-11-expected20] PASSED 5386s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005 11-expected21] PASSED 5387s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-11-2005-expected22] PASSED 5387s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-11 2005-expected23] PASSED 5387s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-200511-expected24] PASSED 5387s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-20051109-expected25] PASSED 5387s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-20051109 10:15-expected26] PASSED 5387s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-20051109 08H-expected27] PASSED 5387s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005-11-09 10:15-expected28] PASSED 5387s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005-11-09 08H-expected29] PASSED 5387s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005/11/09 10:15-expected30] PASSED 5387s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005/11/09 10:15:32-expected31] PASSED 5387s ../../../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 5387s ../../../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 5387s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2005/11/09 08H-expected34] PASSED 5388s ../../../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 5388s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-Thu Sep 25 2003-expected36] PASSED 5388s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-Sep 25 2003-expected37] PASSED 5388s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-January 1 2014-expected38] PASSED 5388s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2014-06-expected39] PASSED 5388s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-06-2014-expected40] PASSED 5388s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-2014-6-expected41] PASSED 5388s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-6-2014-expected42] PASSED 5388s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-20010101 12-expected43] PASSED 5388s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-20010101 1234-expected44] PASSED 5388s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[True-20010101 123456-expected45] PASSED 5388s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2011-01-01-expected0] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2Q2005-expected1] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2Q05-expected2] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005Q1-expected3] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-05Q1-expected4] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2011Q3-expected5] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-11Q3-expected6] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-3Q2011-expected7] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-3Q11-expected8] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2000Q4-expected9] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-00Q4-expected10] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-4Q2000-expected11] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-4Q00-expected12] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2000q4-expected13] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2000-Q4-expected14] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-00-Q4-expected15] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-4Q-2000-expected16] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-4Q-00-expected17] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-00q4-expected18] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005-expected19] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005-11-expected20] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005 11-expected21] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-11-2005-expected22] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-11 2005-expected23] PASSED 5389s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-200511-expected24] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-20051109-expected25] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-20051109 10:15-expected26] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-20051109 08H-expected27] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005-11-09 10:15-expected28] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005-11-09 08H-expected29] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005/11/09 10:15-expected30] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005/11/09 10:15:32-expected31] PASSED 5390s ../../../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 5390s ../../../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 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2005/11/09 08H-expected34] PASSED 5390s ../../../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 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-Thu Sep 25 2003-expected36] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-Sep 25 2003-expected37] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-January 1 2014-expected38] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2014-06-expected39] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-06-2014-expected40] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-2014-6-expected41] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-6-2014-expected42] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-20010101 12-expected43] PASSED 5390s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-20010101 1234-expected44] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers[False-20010101 123456-expected45] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-None-None] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-None-nan] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-None-unique_nulls_fixture22] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-nan-None] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-nan-nan] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-nan-unique_nulls_fixture22] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-unique_nulls_fixture2-None] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[True-unique_nulls_fixture2-nan] PASSED 5391s ../../../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 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-None-None] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-None-nan] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-None-unique_nulls_fixture22] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-nan-None] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-nan-nan] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-nan-unique_nulls_fixture22] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-unique_nulls_fixture2-None] PASSED 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_na_values_with_cache[False-unique_nulls_fixture2-nan] PASSED 5391s ../../../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 5391s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_nat PASSED 5391s ../../../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 5391s ../../../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 5391s ../../../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 5391s ../../../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 5391s ../../../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 5392s ../../../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 5392s ../../../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 5392s ../../../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 5392s ../../../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 5392s ../../../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 5392s ../../../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 5392s ../../../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 5392s ../../../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 5392s ../../../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 5392s ../../../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 5392s ../../../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 5392s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_timestring[10:15-exp_def0] PASSED 5392s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestDatetimeParsingWrappers::test_parsers_timestring[9:05-exp_def1] PASSED 5392s ../../../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 5392s ../../../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 5392s ../../../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 5392s ../../../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 5392s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_origin_and_unit PASSED 5392s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_julian PASSED 5392s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_unix PASSED 5392s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_julian_round_trip PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_unit[D] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_unit[s] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_unit[ms] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_unit[us] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_unit[ns] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origin[ns] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origin[D] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[D-timestamp] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[D-pydatetime] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[D-datetime64] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[D-str_1960] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[s-timestamp] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[s-pydatetime] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[s-datetime64] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[s-str_1960] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ms-timestamp] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ms-pydatetime] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ms-datetime64] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ms-str_1960] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[us-timestamp] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[us-pydatetime] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[us-datetime64] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[us-str_1960] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ns-timestamp] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ns-pydatetime] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ns-datetime64] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_epoch[ns-str_1960] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[D-random_string-ValueError] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[D-epoch-ValueError] PASSED 5393s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[D-13-24-1990-ValueError] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[D-origin3-OutOfBoundsDatetime] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[s-random_string-ValueError] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[s-epoch-ValueError] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[s-13-24-1990-ValueError] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[s-origin3-OutOfBoundsDatetime] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ms-random_string-ValueError] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ms-epoch-ValueError] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ms-13-24-1990-ValueError] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ms-origin3-OutOfBoundsDatetime] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[us-random_string-ValueError] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[us-epoch-ValueError] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[us-13-24-1990-ValueError] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[us-origin3-OutOfBoundsDatetime] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ns-random_string-ValueError] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ns-epoch-ValueError] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ns-13-24-1990-ValueError] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins[ns-origin3-OutOfBoundsDatetime] PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_invalid_origins_tzinfo PASSED 5394s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestOrigin::test_incorrect_value_exception PASSED 5394s ../../../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 5394s ../../../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 5394s ../../../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 5395s ../../../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 5395s ../../../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 5395s ../../../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 5396s ../../../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 5400s ../../../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 5404s ../../../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 5409s ../../../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 5413s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestShouldCache::test_should_cache[listlike0-False] PASSED 5416s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestShouldCache::test_should_cache[listlike1-True] PASSED 5419s ../../../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 5420s ../../../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 5422s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestShouldCache::test_no_slicing_errors_in_should_cache[listlike0] PASSED 5424s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestShouldCache::test_no_slicing_errors_in_should_cache[listlike1] PASSED 5426s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::TestShouldCache::test_no_slicing_errors_in_should_cache[listlike2] PASSED 5428s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_nullable_integer_to_datetime PASSED 5429s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[NoneType-array] PASSED 5432s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[NoneType-list] PASSED 5434s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[float0-array] PASSED 5435s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[float0-list] PASSED 5436s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[NaTType-array] PASSED 5436s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[NaTType-list] PASSED 5436s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[float1-array] PASSED 5436s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[float1-list] PASSED 5436s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[NAType-array] PASSED 5437s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[NAType-list] PASSED 5437s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[Decimal-array] PASSED 5437s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_na_to_datetime[Decimal-list] PASSED 5437s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_empty_string_datetime[non-ISO8601-raise] PASSED 5437s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_empty_string_datetime[non-ISO8601-coerce] PASSED 5437s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_empty_string_datetime[non-ISO8601-ignore] PASSED 5438s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_empty_string_datetime[ISO8601-raise] PASSED 5438s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_empty_string_datetime[ISO8601-coerce] PASSED 5438s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_empty_string_datetime[ISO8601-ignore] PASSED 5438s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_empty_string_datetime_coerce__unit PASSED 5438s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_monotonic_increasing_index[True] PASSED 5438s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_monotonic_increasing_index[False] PASSED 5438s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_cache_coerce_50_lines_outofbounds[40] PASSED 5438s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_cache_coerce_50_lines_outofbounds[50] PASSED 5439s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_cache_coerce_50_lines_outofbounds[51] PASSED 5439s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_cache_coerce_50_lines_outofbounds[55] PASSED 5439s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_format_f_parse_nanos PASSED 5439s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_iso8601 PASSED 5439s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_other PASSED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_or_iso_exact[ISO8601-True] PASSED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_or_iso_exact[ISO8601-False] PASSED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_or_iso_exact[mixed-True] PASSED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_or_iso_exact[mixed-False] PASSED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_not_necessarily_iso8601_raise PASSED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_not_necessarily_iso8601_coerce[coerce-expected0] PASSED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_mixed_not_necessarily_iso8601_coerce[ignore-expected1] PASSED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_ignoring_unknown_tz_deprecated PASSED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[UInt8] SKIPPED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[UInt16] SKIPPED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[UInt32] SKIPPED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[UInt64] SKIPPED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[Int8] SKIPPED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[Int16] SKIPPED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[Int32] SKIPPED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[Int64] SKIPPED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[Float32] SKIPPED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_from_numeric_arrow_dtype[Float64] SKIPPED 5440s ../../../usr/lib/python3/dist-packages/pandas/tests/tools/test_to_datetime.py::test_to_datetime_with_empty_str_utc_false_format_mixed PASSED 5441s ../../../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 5441s 5441s =================================== FAILURES =================================== 5441s _________________ test_dataframe_to_sql[mysql_pymysql_engine] __________________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_engine' 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s def test_dataframe_to_sql(conn, test_frame1, request): 5441s # GH 51086 if conn is sqlite_engine 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:550: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s __________________ test_dataframe_to_sql[mysql_pymysql_conn] ___________________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_conn' 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s def test_dataframe_to_sql(conn, test_frame1, request): 5441s # GH 51086 if conn is sqlite_engine 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:550: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s ______________ test_dataframe_to_sql[postgresql_psycopg2_engine] _______________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_engine' 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s def test_dataframe_to_sql(conn, test_frame1, request): 5441s # GH 51086 if conn is sqlite_engine 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:550: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s _______________ test_dataframe_to_sql[postgresql_psycopg2_conn] ________________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_conn' 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s def test_dataframe_to_sql(conn, test_frame1, request): 5441s # GH 51086 if conn is sqlite_engine 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:550: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s ____________________ test_to_sql[None-mysql_pymysql_engine] ____________________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_engine', method = None 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("method", [None, "multi"]) 5441s def test_to_sql(conn, method, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s _____________________ test_to_sql[None-mysql_pymysql_conn] _____________________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_conn', method = None 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("method", [None, "multi"]) 5441s def test_to_sql(conn, method, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s _________________ test_to_sql[None-postgresql_psycopg2_engine] _________________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_engine', method = None 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("method", [None, "multi"]) 5441s def test_to_sql(conn, method, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s __________________ test_to_sql[None-postgresql_psycopg2_conn] __________________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_conn', method = None 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("method", [None, "multi"]) 5441s def test_to_sql(conn, method, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s ___________________ test_to_sql[multi-mysql_pymysql_engine] ____________________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_engine', method = 'multi' 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("method", [None, "multi"]) 5441s def test_to_sql(conn, method, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s ____________________ test_to_sql[multi-mysql_pymysql_conn] _____________________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_conn', method = 'multi' 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("method", [None, "multi"]) 5441s def test_to_sql(conn, method, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s ________________ test_to_sql[multi-postgresql_psycopg2_engine] _________________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_engine', method = 'multi' 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("method", [None, "multi"]) 5441s def test_to_sql(conn, method, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s _________________ test_to_sql[multi-postgresql_psycopg2_conn] __________________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_conn', method = 'multi' 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("method", [None, "multi"]) 5441s def test_to_sql(conn, method, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:595: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s ______________ test_to_sql_exist[replace-1-mysql_pymysql_engine] _______________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_engine', mode = 'replace', num_row_coef = 1 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 5441s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s _______________ test_to_sql_exist[replace-1-mysql_pymysql_conn] ________________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_conn', mode = 'replace', num_row_coef = 1 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 5441s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s ___________ test_to_sql_exist[replace-1-postgresql_psycopg2_engine] ____________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_engine', mode = 'replace', num_row_coef = 1 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 5441s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s ____________ test_to_sql_exist[replace-1-postgresql_psycopg2_conn] _____________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_conn', mode = 'replace', num_row_coef = 1 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 5441s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s _______________ test_to_sql_exist[append-2-mysql_pymysql_engine] _______________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_engine', mode = 'append', num_row_coef = 2 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 5441s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s ________________ test_to_sql_exist[append-2-mysql_pymysql_conn] ________________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_conn', mode = 'append', num_row_coef = 2 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 5441s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s ____________ test_to_sql_exist[append-2-postgresql_psycopg2_engine] ____________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_engine', mode = 'append', num_row_coef = 2 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 5441s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s _____________ test_to_sql_exist[append-2-postgresql_psycopg2_conn] _____________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_conn', mode = 'append', num_row_coef = 2 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s @pytest.mark.parametrize("mode, num_row_coef", [("replace", 1), ("append", 2)]) 5441s def test_to_sql_exist(conn, mode, num_row_coef, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s _________________ test_to_sql_exist_fail[mysql_pymysql_engine] _________________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_engine' 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s def test_to_sql_exist_fail(conn, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:617: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s __________________ test_to_sql_exist_fail[mysql_pymysql_conn] __________________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_conn' 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s def test_to_sql_exist_fail(conn, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:617: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s ______________ test_to_sql_exist_fail[postgresql_psycopg2_engine] ______________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_engine' 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s def test_to_sql_exist_fail(conn, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:617: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s _______________ test_to_sql_exist_fail[postgresql_psycopg2_conn] _______________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_conn' 5441s test_frame1 = index A B C D 5441s 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 5441s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable) 5441s def test_to_sql_exist_fail(conn, test_frame1, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:617: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s __________________ test_read_iris_query[mysql_pymysql_engine] __________________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_engine' 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable_iris) 5441s def test_read_iris_query(conn, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:630: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s ___________________ test_read_iris_query[mysql_pymysql_conn] ___________________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_conn' 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable_iris) 5441s def test_read_iris_query(conn, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:630: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s _______________ test_read_iris_query[postgresql_psycopg2_engine] _______________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_engine' 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable_iris) 5441s def test_read_iris_query(conn, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:630: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s ________________ test_read_iris_query[postgresql_psycopg2_conn] ________________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_conn' 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable_iris) 5441s def test_read_iris_query(conn, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:630: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s _____________ test_read_iris_query_chunksize[mysql_pymysql_engine] _____________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_engine' 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable_iris) 5441s def test_read_iris_query_chunksize(conn, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s ______________ test_read_iris_query_chunksize[mysql_pymysql_conn] ______________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_conn' 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable_iris) 5441s def test_read_iris_query_chunksize(conn, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s __________ test_read_iris_query_chunksize[postgresql_psycopg2_engine] __________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_engine' 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable_iris) 5441s def test_read_iris_query_chunksize(conn, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s ___________ test_read_iris_query_chunksize[postgresql_psycopg2_conn] ___________ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_conn' 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable_iris) 5441s def test_read_iris_query_chunksize(conn, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s _____ test_read_iris_query_expression_with_parameter[mysql_pymysql_engine] _____ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_engine' 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 5441s def test_read_iris_query_expression_with_parameter(conn, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:656: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s ______ test_read_iris_query_expression_with_parameter[mysql_pymysql_conn] ______ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_conn' 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 5441s def test_read_iris_query_expression_with_parameter(conn, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:656: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s __ test_read_iris_query_expression_with_parameter[postgresql_psycopg2_engine] __ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_engine' 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 5441s def test_read_iris_query_expression_with_parameter(conn, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:656: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': ...postgresql_psycopg2_engine' for >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': ...postgresql_psycopg2_engine' for >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s ___ test_read_iris_query_expression_with_parameter[postgresql_psycopg2_conn] ___ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_conn' 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 5441s def test_read_iris_query_expression_with_parameter(conn, request): 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:656: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': ... 'postgresql_psycopg2_engine' for >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': ... 'postgresql_psycopg2_engine' for >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s _______ test_read_iris_query_string_with_parameter[mysql_pymysql_engine] _______ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_engine' 5441s request = > 5441s 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=?'}} 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable_iris) 5441s def test_read_iris_query_string_with_parameter(conn, request, sql_strings): 5441s for db, query in sql_strings["read_parameters"].items(): 5441s if db in conn: 5441s break 5441s else: 5441s raise KeyError(f"No part of {conn} found in sql_strings['read_parameters']") 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:683: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s ________ test_read_iris_query_string_with_parameter[mysql_pymysql_conn] ________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_conn' 5441s request = > 5441s 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=?'}} 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable_iris) 5441s def test_read_iris_query_string_with_parameter(conn, request, sql_strings): 5441s for db, query in sql_strings["read_parameters"].items(): 5441s if db in conn: 5441s break 5441s else: 5441s raise KeyError(f"No part of {conn} found in sql_strings['read_parameters']") 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:683: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s ____ test_read_iris_query_string_with_parameter[postgresql_psycopg2_engine] ____ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_engine' 5441s request = > 5441s 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=?'}} 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable_iris) 5441s def test_read_iris_query_string_with_parameter(conn, request, sql_strings): 5441s for db, query in sql_strings["read_parameters"].items(): 5441s if db in conn: 5441s break 5441s else: 5441s raise KeyError(f"No part of {conn} found in sql_strings['read_parameters']") 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:683: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': ...st 'postgresql_psycopg2_engine' for >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': ...st 'postgresql_psycopg2_engine' for >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s _____ test_read_iris_query_string_with_parameter[postgresql_psycopg2_conn] _____ 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'postgresql_psycopg2_conn' 5441s request = > 5441s 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=?'}} 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", all_connectable_iris) 5441s def test_read_iris_query_string_with_parameter(conn, request, sql_strings): 5441s for db, query in sql_strings["read_parameters"].items(): 5441s if db in conn: 5441s break 5441s else: 5441s raise KeyError(f"No part of {conn} found in sql_strings['read_parameters']") 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:683: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_conn' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s > fixturedef = request._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'postgresql_psycopg2_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': ...uest 'postgresql_psycopg2_engine' for >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': ...uest 'postgresql_psycopg2_engine' for >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def postgresql_psycopg2_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pytest.importorskip("psycopg2") 5441s engine = sqlalchemy.create_engine( 5441s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s 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') 5441s dialect = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s connection = None, _has_events = None, _allow_revalidate = True 5441s _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5441s connection_factory = None, cursor_factory = None 5441s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5441s kwasync = {} 5441s 5441s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5441s """ 5441s Create a new database connection. 5441s 5441s The connection parameters can be specified as a string: 5441s 5441s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5441s 5441s or using a set of keyword arguments: 5441s 5441s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5441s 5441s Or as a mix of both. The basic connection parameters are: 5441s 5441s - *dbname*: the database name 5441s - *database*: the database name (only as keyword argument) 5441s - *user*: user name used to authenticate 5441s - *password*: password used to authenticate 5441s - *host*: database host address (defaults to UNIX socket if not provided) 5441s - *port*: connection port number (defaults to 5432 if not provided) 5441s 5441s Using the *connection_factory* parameter a different class or connections 5441s factory can be specified. It should be a callable object taking a dsn 5441s argument. 5441s 5441s Using the *cursor_factory* parameter, a new default cursor factory will be 5441s used by cursor(). 5441s 5441s Using *async*=True an asynchronous connection will be created. *async_* is 5441s a valid alias (for Python versions where ``async`` is a keyword). 5441s 5441s Any other keyword parameter will be passed to the underlying client 5441s library: the list of supported parameters depends on the library version. 5441s 5441s """ 5441s kwasync = {} 5441s if 'async' in kwargs: 5441s kwasync['async'] = kwargs.pop('async') 5441s if 'async_' in kwargs: 5441s kwasync['async_'] = kwargs.pop('async_') 5441s 5441s dsn = _ext.make_dsn(dsn, **kwargs) 5441s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5441s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5441s E Is the server running on that host and accepting TCP/IP connections? 5441s E 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5441s __________________ test_read_iris_table[mysql_pymysql_engine] __________________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s 5441s The above exception was the direct cause of the following exception: 5441s 5441s conn = 'mysql_pymysql_engine' 5441s request = > 5441s 5441s @pytest.mark.db 5441s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 5441s def test_read_iris_table(conn, request): 5441s # GH 51015 if conn = sqlite_iris_str 5441s > conn = request.getfixturevalue(conn) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:692: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def getfixturevalue(self, argname: str) -> Any: 5441s """Dynamically run a named fixture function. 5441s 5441s Declaring fixtures via function argument is recommended where possible. 5441s But if you can only decide whether to use another fixture at test 5441s setup time, you may use this function to retrieve it inside a fixture 5441s or test function body. 5441s 5441s This method can be used during the test setup phase or the test run 5441s phase, but during the test teardown phase a fixture's value may not 5441s be available. 5441s 5441s :param argname: 5441s The fixture name. 5441s :raises pytest.FixtureLookupError: 5441s If the given fixture could not be found. 5441s """ 5441s # Note that in addition to the use case described in the docstring, 5441s # getfixturevalue() is also called by pytest itself during item and fixture 5441s # setup to evaluate the fixtures that are requested statically 5441s # (using function parameters, autouse, etc). 5441s 5441s > fixturedef = self._get_active_fixturedef(argname) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = > 5441s argname = 'mysql_pymysql_engine' 5441s 5441s def _get_active_fixturedef( 5441s self, argname: str 5441s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5441s if argname == "request": 5441s cached_result = (self, [0], None) 5441s return PseudoFixtureDef(cached_result, Scope.Function) 5441s 5441s # If we already finished computing a fixture by this name in this item, 5441s # return it. 5441s fixturedef = self._fixture_defs.get(argname) 5441s if fixturedef is not None: 5441s self._check_scope(fixturedef, fixturedef._scope) 5441s return fixturedef 5441s 5441s # Find the appropriate fixturedef. 5441s fixturedefs = self._arg2fixturedefs.get(argname, None) 5441s if fixturedefs is None: 5441s # We arrive here because of a dynamic call to 5441s # getfixturevalue(argname) which was naturally 5441s # not known at parsing/collection time. 5441s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5441s if fixturedefs is not None: 5441s self._arg2fixturedefs[argname] = fixturedefs 5441s # No fixtures defined with this name. 5441s if fixturedefs is None: 5441s raise FixtureLookupError(argname, self) 5441s # The are no fixtures with this name applicable for the function. 5441s if not fixturedefs: 5441s raise FixtureLookupError(argname, self) 5441s # A fixture may override another fixture with the same name, e.g. a 5441s # fixture in a module can override a fixture in a conftest, a fixture in 5441s # a class can override a fixture in the module, and so on. 5441s # An overriding fixture can request its own name (possibly indirectly); 5441s # in this case it gets the value of the fixture it overrides, one level 5441s # up. 5441s # Check how many `argname`s deep we are, and take the next one. 5441s # `fixturedefs` is sorted from furthest to closest, so use negative 5441s # indexing to go in reverse. 5441s index = -1 5441s for request in self._iter_chain(): 5441s if request.fixturename == argname: 5441s index -= 1 5441s # If already consumed all of the available levels, fail. 5441s if -index > len(fixturedefs): 5441s raise FixtureLookupError(argname, self) 5441s fixturedef = fixturedefs[index] 5441s 5441s # Prepare a SubRequest object for calling the fixture. 5441s try: 5441s callspec = self._pyfuncitem.callspec 5441s except AttributeError: 5441s callspec = None 5441s if callspec is not None and argname in callspec.params: 5441s param = callspec.params[argname] 5441s param_index = callspec.indices[argname] 5441s # The parametrize invocation scope overrides the fixture's scope. 5441s scope = callspec._arg2scope[argname] 5441s else: 5441s param = NOTSET 5441s param_index = 0 5441s scope = fixturedef._scope 5441s self._check_fixturedef_without_param(fixturedef) 5441s self._check_scope(fixturedef, scope) 5441s subrequest = SubRequest( 5441s self, scope, param, param_index, fixturedef, _ispytest=True 5441s ) 5441s 5441s # Make sure the fixture value is cached, running it if it isn't 5441s > fixturedef.execute(request=subrequest) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s request = > 5441s 5441s def execute(self, request: SubRequest) -> FixtureValue: 5441s """Return the value of this fixture, executing it if not cached.""" 5441s # Ensure that the dependent fixtures requested by this fixture are loaded. 5441s # This needs to be done before checking if we have a cached value, since 5441s # if a dependent fixture has their cache invalidated, e.g. due to 5441s # parametrization, they finalize themselves and fixtures depending on it 5441s # (which will likely include this fixture) setting `self.cached_result = None`. 5441s # See #4871 5441s requested_fixtures_that_should_finalize_us = [] 5441s for argname in self.argnames: 5441s fixturedef = request._get_active_fixturedef(argname) 5441s # Saves requested fixtures in a list so we later can add our finalizer 5441s # to them, ensuring that if a requested fixture gets torn down we get torn 5441s # down first. This is generally handled by SetupState, but still currently 5441s # needed when this fixture is not parametrized but depends on a parametrized 5441s # fixture. 5441s if not isinstance(fixturedef, PseudoFixtureDef): 5441s requested_fixtures_that_should_finalize_us.append(fixturedef) 5441s 5441s # Check for (and return) cached value/exception. 5441s my_cache_key = self.cache_key(request) 5441s if self.cached_result is not None: 5441s cache_key = self.cached_result[1] 5441s # note: comparison with `==` can fail (or be expensive) for e.g. 5441s # numpy arrays (#6497). 5441s if my_cache_key is cache_key: 5441s if self.cached_result[2] is not None: 5441s exc = self.cached_result[2] 5441s raise exc 5441s else: 5441s result = self.cached_result[0] 5441s return result 5441s # We have a previous but differently parametrized fixture instance 5441s # so we need to tear it down before creating a new one. 5441s self.finish(request) 5441s assert self.cached_result is None 5441s 5441s # Add finalizer to requested fixtures we saved previously. 5441s # We make sure to do this after checking for cached value to avoid 5441s # adding our finalizer multiple times. (#12135) 5441s finalizer = functools.partial(self.finish, request=request) 5441s for parent_fixture in requested_fixtures_that_should_finalize_us: 5441s parent_fixture.addfinalizer(finalizer) 5441s 5441s ihook = request.node.ihook 5441s try: 5441s # Setup the fixture, run the code in it, and cache the value 5441s # in self.cached_result 5441s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def __call__(self, **kwargs: object) -> Any: 5441s """Call the hook. 5441s 5441s Only accepts keyword arguments, which should match the hook 5441s specification. 5441s 5441s Returns the result(s) of calling all registered plugins, see 5441s :ref:`calling`. 5441s """ 5441s assert ( 5441s not self.is_historic() 5441s ), "Cannot directly call a historic hook - use call_historic instead." 5441s self._verify_all_args_are_provided(kwargs) 5441s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5441s # Copy because plugins may register other plugins during iteration (#438). 5441s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5441s hook_name = 'pytest_fixture_setup' 5441s methods = [>] 5441s kwargs = {'fixturedef': , 'request': >} 5441s firstresult = True 5441s 5441s def _hookexec( 5441s self, 5441s hook_name: str, 5441s methods: Sequence[HookImpl], 5441s kwargs: Mapping[str, object], 5441s firstresult: bool, 5441s ) -> object | list[object]: 5441s # called from all hookcaller instances. 5441s # enable_tracing will set its own wrapping function at self._inner_hookexec 5441s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5441s 5441s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s @pytest.hookimpl(wrapper=True) 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[object], request: SubRequest 5441s ) -> Generator[None, object, object]: 5441s try: 5441s > return (yield) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturedef = 5441s request = > 5441s 5441s def pytest_fixture_setup( 5441s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5441s ) -> FixtureValue: 5441s """Execution of fixture setup.""" 5441s kwargs = {} 5441s for argname in fixturedef.argnames: 5441s kwargs[argname] = request.getfixturevalue(argname) 5441s 5441s fixturefunc = resolve_fixture_function(fixturedef, request) 5441s my_cache_key = fixturedef.cache_key(request) 5441s try: 5441s > result = call_fixture_func(fixturefunc, request, kwargs) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s fixturefunc = 5441s request = > 5441s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5441s 5441s def call_fixture_func( 5441s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5441s ) -> FixtureValue: 5441s if is_generator(fixturefunc): 5441s fixturefunc = cast( 5441s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5441s ) 5441s generator = fixturefunc(**kwargs) 5441s try: 5441s > fixture_result = next(generator) 5441s 5441s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5441s 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', ...}] 5441s 5441s @pytest.fixture 5441s def mysql_pymysql_engine(iris_path, types_data): 5441s sqlalchemy = pytest.importorskip("sqlalchemy") 5441s pymysql = pytest.importorskip("pymysql") 5441s engine = sqlalchemy.create_engine( 5441s "mysql+pymysql://root@localhost:3306/pandas", 5441s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5441s poolclass=sqlalchemy.pool.NullPool, 5441s ) 5441s > insp = sqlalchemy.inspect(engine) 5441s 5441s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5441s 5441s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5441s """Produce an inspection object for the given target. 5441s 5441s The returned value in some cases may be the 5441s same object as the one given, such as if a 5441s :class:`_orm.Mapper` object is passed. In other 5441s cases, it will be an instance of the registered 5441s inspection type for the given object, such as 5441s if an :class:`_engine.Engine` is passed, an 5441s :class:`_reflection.Inspector` object is returned. 5441s 5441s :param subject: the subject to be inspected. 5441s :param raiseerr: When ``True``, if the given subject 5441s does not 5441s correspond to a known SQLAlchemy inspected type, 5441s :class:`sqlalchemy.exc.NoInspectionAvailable` 5441s is raised. If ``False``, ``None`` is returned. 5441s 5441s """ 5441s type_ = type(subject) 5441s for cls in type_.__mro__: 5441s if cls in _registrars: 5441s reg = _registrars.get(cls, None) 5441s if reg is None: 5441s continue 5441s elif reg is True: 5441s return subject 5441s > ret = reg(subject) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @inspection._inspects(Engine) 5441s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5441s > return Inspector._construct(Inspector._init_engine, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s init = 5441s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s @classmethod 5441s def _construct( 5441s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5441s ) -> Inspector: 5441s if hasattr(bind.dialect, "inspector"): 5441s cls = bind.dialect.inspector 5441s 5441s self = cls.__new__(cls) 5441s > init(self, bind) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def _init_engine(self, engine: Engine) -> None: 5441s self.bind = self.engine = engine 5441s > engine.connect().close() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def connect(self) -> Connection: 5441s """Return a new :class:`_engine.Connection` object. 5441s 5441s The :class:`_engine.Connection` acts as a Python context manager, so 5441s the typical use of this method looks like:: 5441s 5441s with engine.connect() as connection: 5441s connection.execute(text("insert into table values ('foo')")) 5441s connection.commit() 5441s 5441s Where above, after the block is completed, the connection is "closed" 5441s and its underlying DBAPI resources are returned to the connection pool. 5441s This also has the effect of rolling back any transaction that 5441s was explicitly begun or was begun via autobegin, and will 5441s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5441s started and is still in progress. 5441s 5441s .. seealso:: 5441s 5441s :meth:`_engine.Engine.begin` 5441s 5441s """ 5441s 5441s > return self._connection_cls(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s self._dbapi_connection = engine.raw_connection() 5441s except dialect.loaded_dbapi.Error as err: 5441s > Connection._handle_dbapi_exception_noconnection( 5441s err, dialect, engine 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s dialect = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5441s 5441s @classmethod 5441s def _handle_dbapi_exception_noconnection( 5441s cls, 5441s e: BaseException, 5441s dialect: Dialect, 5441s engine: Optional[Engine] = None, 5441s is_disconnect: Optional[bool] = None, 5441s invalidate_pool_on_disconnect: bool = True, 5441s is_pre_ping: bool = False, 5441s ) -> NoReturn: 5441s exc_info = sys.exc_info() 5441s 5441s if is_disconnect is None: 5441s is_disconnect = isinstance( 5441s e, dialect.loaded_dbapi.Error 5441s ) and dialect.is_disconnect(e, None, None) 5441s 5441s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5441s 5441s if should_wrap: 5441s sqlalchemy_exception = exc.DBAPIError.instance( 5441s None, 5441s None, 5441s cast(Exception, e), 5441s dialect.loaded_dbapi.Error, 5441s hide_parameters=( 5441s engine.hide_parameters if engine is not None else False 5441s ), 5441s connection_invalidated=is_disconnect, 5441s dialect=dialect, 5441s ) 5441s else: 5441s sqlalchemy_exception = None 5441s 5441s newraise = None 5441s 5441s if dialect._has_events: 5441s ctx = ExceptionContextImpl( 5441s e, 5441s sqlalchemy_exception, 5441s engine, 5441s dialect, 5441s None, 5441s None, 5441s None, 5441s None, 5441s None, 5441s is_disconnect, 5441s invalidate_pool_on_disconnect, 5441s is_pre_ping, 5441s ) 5441s for fn in dialect.dispatch.handle_error: 5441s try: 5441s # handler returns an exception; 5441s # call next handler in a chain 5441s per_fn = fn(ctx) 5441s if per_fn is not None: 5441s ctx.chained_exception = newraise = per_fn 5441s except Exception as _raised: 5441s # handler raises an exception - stop processing 5441s newraise = _raised 5441s break 5441s 5441s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5441s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5441s ctx.is_disconnect 5441s ) 5441s 5441s if newraise: 5441s raise newraise.with_traceback(exc_info[2]) from e 5441s elif should_wrap: 5441s assert sqlalchemy_exception is not None 5441s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5441s self._exc_info = None # remove potential circular references 5441s > raise exc_value.with_traceback(exc_tb) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s > self.dbapi_connection = connection = pool._invoke_creator(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s connection_record = 5441s 5441s def connect( 5441s connection_record: Optional[ConnectionPoolEntry] = None, 5441s ) -> DBAPIConnection: 5441s if dialect._has_events: 5441s for fn in dialect.dispatch.do_connect: 5441s connection = cast( 5441s DBAPIConnection, 5441s fn(dialect, connection_record, cargs, cparams), 5441s ) 5441s if connection is not None: 5441s return connection 5441s 5441s > return dialect.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s cargs = () 5441s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5441s 5441s def connect(self, *cargs, **cparams): 5441s # inherits the docstring from interfaces.Dialect.connect 5441s > return self.loaded_dbapi.connect(*cargs, **cparams) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __init__( 5441s self, 5441s *, 5441s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5441s password="", 5441s host=None, 5441s database=None, 5441s unix_socket=None, 5441s port=0, 5441s charset="", 5441s collation=None, 5441s sql_mode=None, 5441s read_default_file=None, 5441s conv=None, 5441s use_unicode=True, 5441s client_flag=0, 5441s cursorclass=Cursor, 5441s init_command=None, 5441s connect_timeout=10, 5441s read_default_group=None, 5441s autocommit=False, 5441s local_infile=False, 5441s max_allowed_packet=16 * 1024 * 1024, 5441s defer_connect=False, 5441s auth_plugin_map=None, 5441s read_timeout=None, 5441s write_timeout=None, 5441s bind_address=None, 5441s binary_prefix=False, 5441s program_name=None, 5441s server_public_key=None, 5441s ssl=None, 5441s ssl_ca=None, 5441s ssl_cert=None, 5441s ssl_disabled=None, 5441s ssl_key=None, 5441s ssl_key_password=None, 5441s ssl_verify_cert=None, 5441s ssl_verify_identity=None, 5441s compress=None, # not supported 5441s named_pipe=None, # not supported 5441s passwd=None, # deprecated 5441s db=None, # deprecated 5441s ): 5441s if db is not None and database is None: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5441s database = db 5441s if passwd is not None and not password: 5441s # We will raise warning in 2022 or later. 5441s # See https://github.com/PyMySQL/PyMySQL/issues/939 5441s # warnings.warn( 5441s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5441s # ) 5441s password = passwd 5441s 5441s if compress or named_pipe: 5441s raise NotImplementedError( 5441s "compress and named_pipe arguments are not supported" 5441s ) 5441s 5441s self._local_infile = bool(local_infile) 5441s if self._local_infile: 5441s client_flag |= CLIENT.LOCAL_FILES 5441s 5441s if read_default_group and not read_default_file: 5441s if sys.platform.startswith("win"): 5441s read_default_file = "c:\\my.ini" 5441s else: 5441s read_default_file = "/etc/my.cnf" 5441s 5441s if read_default_file: 5441s if not read_default_group: 5441s read_default_group = "client" 5441s 5441s cfg = Parser() 5441s cfg.read(os.path.expanduser(read_default_file)) 5441s 5441s def _config(key, arg): 5441s if arg: 5441s return arg 5441s try: 5441s return cfg.get(read_default_group, key) 5441s except Exception: 5441s return arg 5441s 5441s user = _config("user", user) 5441s password = _config("password", password) 5441s host = _config("host", host) 5441s database = _config("database", database) 5441s unix_socket = _config("socket", unix_socket) 5441s port = int(_config("port", port)) 5441s bind_address = _config("bind-address", bind_address) 5441s charset = _config("default-character-set", charset) 5441s if not ssl: 5441s ssl = {} 5441s if isinstance(ssl, dict): 5441s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5441s value = _config("ssl-" + key, ssl.get(key)) 5441s if value: 5441s ssl[key] = value 5441s 5441s self.ssl = False 5441s if not ssl_disabled: 5441s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5441s ssl = { 5441s "ca": ssl_ca, 5441s "check_hostname": bool(ssl_verify_identity), 5441s "verify_mode": ssl_verify_cert 5441s if ssl_verify_cert is not None 5441s else False, 5441s } 5441s if ssl_cert is not None: 5441s ssl["cert"] = ssl_cert 5441s if ssl_key is not None: 5441s ssl["key"] = ssl_key 5441s if ssl_key_password is not None: 5441s ssl["password"] = ssl_key_password 5441s if ssl: 5441s if not SSL_ENABLED: 5441s raise NotImplementedError("ssl module not found") 5441s self.ssl = True 5441s client_flag |= CLIENT.SSL 5441s self.ctx = self._create_ssl_ctx(ssl) 5441s 5441s self.host = host or "localhost" 5441s self.port = port or 3306 5441s if type(self.port) is not int: 5441s raise ValueError("port should be of type int") 5441s self.user = user or DEFAULT_USER 5441s self.password = password or b"" 5441s if isinstance(self.password, str): 5441s self.password = self.password.encode("latin1") 5441s self.db = database 5441s self.unix_socket = unix_socket 5441s self.bind_address = bind_address 5441s if not (0 < connect_timeout <= 31536000): 5441s raise ValueError("connect_timeout should be >0 and <=31536000") 5441s self.connect_timeout = connect_timeout or None 5441s if read_timeout is not None and read_timeout <= 0: 5441s raise ValueError("read_timeout should be > 0") 5441s self._read_timeout = read_timeout 5441s if write_timeout is not None and write_timeout <= 0: 5441s raise ValueError("write_timeout should be > 0") 5441s self._write_timeout = write_timeout 5441s 5441s self.charset = charset or DEFAULT_CHARSET 5441s self.collation = collation 5441s self.use_unicode = use_unicode 5441s 5441s self.encoding = charset_by_name(self.charset).encoding 5441s 5441s client_flag |= CLIENT.CAPABILITIES 5441s if self.db: 5441s client_flag |= CLIENT.CONNECT_WITH_DB 5441s 5441s self.client_flag = client_flag 5441s 5441s self.cursorclass = cursorclass 5441s 5441s self._result = None 5441s self._affected_rows = 0 5441s self.host_info = "Not connected" 5441s 5441s # specified autocommit mode. None means use server default. 5441s self.autocommit_mode = autocommit 5441s 5441s if conv is None: 5441s conv = converters.conversions 5441s 5441s # Need for MySQLdb compatibility. 5441s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5441s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5441s self.sql_mode = sql_mode 5441s self.init_command = init_command 5441s self.max_allowed_packet = max_allowed_packet 5441s self._auth_plugin_map = auth_plugin_map or {} 5441s self._binary_prefix = binary_prefix 5441s self.server_public_key = server_public_key 5441s 5441s self._connect_attrs = { 5441s "_client_name": "pymysql", 5441s "_client_version": VERSION_STRING, 5441s "_pid": str(os.getpid()), 5441s } 5441s 5441s if program_name: 5441s self._connect_attrs["program_name"] = program_name 5441s 5441s if defer_connect: 5441s self._sock = None 5441s else: 5441s > self.connect() 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s break 5441s except OSError as e: 5441s if e.errno == errno.EINTR: 5441s continue 5441s raise 5441s self.host_info = "socket %s:%d" % (self.host, self.port) 5441s if DEBUG: 5441s print("connected using socket") 5441s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5441s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5441s sock.settimeout(None) 5441s 5441s self._sock = sock 5441s self._rfile = sock.makefile("rb") 5441s self._next_seq_id = 0 5441s 5441s self._get_server_information() 5441s self._request_authentication() 5441s 5441s # Send "SET NAMES" query on init for: 5441s # - Ensure charaset (and collation) is set to the server. 5441s # - collation_id in handshake packet may be ignored. 5441s # - If collation is not specified, we don't know what is server's 5441s # default collation for the charset. For example, default collation 5441s # of utf8mb4 is: 5441s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5441s # - MySQL 8.0: utf8mb4_0900_ai_ci 5441s # 5441s # Reference: 5441s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5441s # - https://github.com/wagtail/wagtail/issues/9477 5441s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5441s self.set_character_set(self.charset, self.collation) 5441s 5441s if self.sql_mode is not None: 5441s c = self.cursor() 5441s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5441s c.close() 5441s 5441s if self.init_command is not None: 5441s c = self.cursor() 5441s c.execute(self.init_command) 5441s c.close() 5441s 5441s if self.autocommit_mode is not None: 5441s self.autocommit(self.autocommit_mode) 5441s except BaseException as e: 5441s self._rfile = None 5441s if sock is not None: 5441s try: 5441s sock.close() 5441s except: # noqa 5441s pass 5441s 5441s if isinstance(e, (OSError, IOError)): 5441s exc = err.OperationalError( 5441s CR.CR_CONN_HOST_ERROR, 5441s f"Can't connect to MySQL server on {self.host!r} ({e})", 5441s ) 5441s # Keep original exception and traceback to investigate error. 5441s exc.original_exception = e 5441s exc.traceback = traceback.format_exc() 5441s if DEBUG: 5441s print(exc.traceback) 5441s > raise exc 5441s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5441s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5441s ___________________ test_read_iris_table[mysql_pymysql_conn] ___________________ 5441s self = , sock = None 5441s 5441s def connect(self, sock=None): 5441s self._closed = False 5441s try: 5441s if sock is None: 5441s if self.unix_socket: 5441s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5441s sock.settimeout(self.connect_timeout) 5441s sock.connect(self.unix_socket) 5441s self.host_info = "Localhost via UNIX socket" 5441s self._secure = True 5441s if DEBUG: 5441s print("connected using unix_socket") 5441s else: 5441s kwargs = {} 5441s if self.bind_address is not None: 5441s kwargs["source_address"] = (self.bind_address, 0) 5441s while True: 5441s try: 5441s > sock = socket.create_connection( 5441s (self.host, self.port), self.connect_timeout, **kwargs 5441s ) 5441s 5441s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s sock.connect(sa) 5441s # Break explicitly a reference cycle 5441s exceptions.clear() 5441s return sock 5441s 5441s except error as exc: 5441s if not all_errors: 5441s exceptions.clear() # raise only the last error 5441s exceptions.append(exc) 5441s if sock is not None: 5441s sock.close() 5441s 5441s if len(exceptions): 5441s try: 5441s if not all_errors: 5441s > raise exceptions[0] 5441s 5441s /usr/lib/python3.12/socket.py:853: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s address = ('localhost', 3306), timeout = 10, source_address = None 5441s 5441s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5441s source_address=None, *, all_errors=False): 5441s """Connect to *address* and return the socket object. 5441s 5441s Convenience function. Connect to *address* (a 2-tuple ``(host, 5441s port)``) and return the socket object. Passing the optional 5441s *timeout* parameter will set the timeout on the socket instance 5441s before attempting to connect. If no *timeout* is supplied, the 5441s global default timeout setting returned by :func:`getdefaulttimeout` 5441s is used. If *source_address* is set it must be a tuple of (host, port) 5441s for the socket to bind as a source address before making the connection. 5441s A host of '' or port 0 tells the OS to use the default. When a connection 5441s cannot be created, raises the last error if *all_errors* is False, 5441s and an ExceptionGroup of all errors if *all_errors* is True. 5441s """ 5441s 5441s host, port = address 5441s exceptions = [] 5441s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5441s af, socktype, proto, canonname, sa = res 5441s sock = None 5441s try: 5441s sock = socket(af, socktype, proto) 5441s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5441s sock.settimeout(timeout) 5441s if source_address: 5441s sock.bind(source_address) 5441s > sock.connect(sa) 5441s E ConnectionRefusedError: [Errno 111] Connection refused 5441s 5441s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5441s 5441s During handling of the above exception, another exception occurred: 5441s 5441s self = 5441s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5441s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5441s 5441s def __init__( 5441s self, 5441s engine: Engine, 5441s connection: Optional[PoolProxiedConnection] = None, 5441s _has_events: Optional[bool] = None, 5441s _allow_revalidate: bool = True, 5441s _allow_autobegin: bool = True, 5441s ): 5441s """Construct a new Connection.""" 5441s self.engine = engine 5441s self.dialect = dialect = engine.dialect 5441s 5441s if connection is None: 5441s try: 5441s > self._dbapi_connection = engine.raw_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5441s 5441s def raw_connection(self) -> PoolProxiedConnection: 5441s """Return a "raw" DBAPI connection from the connection pool. 5441s 5441s The returned object is a proxied version of the DBAPI 5441s connection object used by the underlying driver in use. 5441s The object will have all the same behavior as the real DBAPI 5441s connection, except that its ``close()`` method will result in the 5441s connection being returned to the pool, rather than being closed 5441s for real. 5441s 5441s This method provides direct DBAPI connection access for 5441s special situations when the API provided by 5441s :class:`_engine.Connection` 5441s is not needed. When a :class:`_engine.Connection` object is already 5441s present, the DBAPI connection is available using 5441s the :attr:`_engine.Connection.connection` accessor. 5441s 5441s .. seealso:: 5441s 5441s :ref:`dbapi_connections` 5441s 5441s """ 5441s > return self.pool.connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def connect(self) -> PoolProxiedConnection: 5441s """Return a DBAPI connection from the pool. 5441s 5441s The connection is instrumented such that when its 5441s ``close()`` method is called, the connection will be returned to 5441s the pool. 5441s 5441s """ 5441s > return _ConnectionFairy._checkout(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = , threadconns = None 5441s fairy = None 5441s 5441s @classmethod 5441s def _checkout( 5441s cls, 5441s pool: Pool, 5441s threadconns: Optional[threading.local] = None, 5441s fairy: Optional[_ConnectionFairy] = None, 5441s ) -> _ConnectionFairy: 5441s if not fairy: 5441s > fairy = _ConnectionRecord.checkout(pool) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s cls = 5441s pool = 5441s 5441s @classmethod 5441s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5441s if TYPE_CHECKING: 5441s rec = cast(_ConnectionRecord, pool._do_get()) 5441s else: 5441s > rec = pool._do_get() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _do_get(self) -> ConnectionPoolEntry: 5441s > return self._create_connection() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def _create_connection(self) -> ConnectionPoolEntry: 5441s """Called by subclasses to create a new ConnectionRecord.""" 5441s 5441s > return _ConnectionRecord(self) 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s pool = , connect = True 5441s 5441s def __init__(self, pool: Pool, connect: bool = True): 5441s self.fresh = False 5441s self.fairy_ref = None 5441s self.starttime = 0 5441s self.dbapi_connection = None 5441s 5441s self.__pool = pool 5441s if connect: 5441s > self.__connect() 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s 5441s def __connect(self) -> None: 5441s pool = self.__pool 5441s 5441s # ensure any existing connection is removed, so that if 5441s # creator fails, this attribute stays None 5441s self.dbapi_connection = None 5441s try: 5441s self.starttime = time.time() 5441s self.dbapi_connection = connection = pool._invoke_creator(self) 5441s pool.logger.debug("Created new connection %r", connection) 5441s self.fresh = True 5441s except BaseException as e: 5441s > with util.safe_reraise(): 5441s 5441s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5441s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5441s 5441s self = 5441s type_ = None, value = None, traceback = None 5441s 5441s def __exit__( 5441s self, 5441s type_: Optional[Type[BaseException]], 5441s value: Optional[BaseException], 5441s traceback: Optional[types.TracebackType], 5441s ) -> NoReturn: 5441s assert self._exc_info is not None 5441s # see #2703 for notes 5441s if type_ is None: 5441s exc_type, exc_value, exc_tb = self._exc_info 5441s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'mysql_pymysql_conn' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 5442s def test_read_iris_table(conn, request): 5442s # GH 51015 if conn = sqlite_iris_str 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:692: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_conn' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_conn' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s > fixturedef = request._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def mysql_pymysql_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pymysql = pytest.importorskip("pymysql") 5442s engine = sqlalchemy.create_engine( 5442s "mysql+pymysql://root@localhost:3306/pandas", 5442s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s dialect = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s _______________ test_read_iris_table[postgresql_psycopg2_engine] _______________ 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'postgresql_psycopg2_engine' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 5442s def test_read_iris_table(conn, request): 5442s # GH 51015 if conn = sqlite_iris_str 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:692: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def postgresql_psycopg2_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pytest.importorskip("psycopg2") 5442s engine = sqlalchemy.create_engine( 5442s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s 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') 5442s dialect = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s E 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s ________________ test_read_iris_table[postgresql_psycopg2_conn] ________________ 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'postgresql_psycopg2_conn' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 5442s def test_read_iris_table(conn, request): 5442s # GH 51015 if conn = sqlite_iris_str 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:692: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_conn' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_conn' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s > fixturedef = request._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def postgresql_psycopg2_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pytest.importorskip("psycopg2") 5442s engine = sqlalchemy.create_engine( 5442s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s 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') 5442s dialect = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s E 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s _____________ test_read_iris_table_chunksize[mysql_pymysql_engine] _____________ 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s > sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s sock.connect(sa) 5442s # Break explicitly a reference cycle 5442s exceptions.clear() 5442s return sock 5442s 5442s except error as exc: 5442s if not all_errors: 5442s exceptions.clear() # raise only the last error 5442s exceptions.append(exc) 5442s if sock is not None: 5442s sock.close() 5442s 5442s if len(exceptions): 5442s try: 5442s if not all_errors: 5442s > raise exceptions[0] 5442s 5442s /usr/lib/python3.12/socket.py:853: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s > sock.connect(sa) 5442s E ConnectionRefusedError: [Errno 111] Connection refused 5442s 5442s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5442s 5442s During handling of the above exception, another exception occurred: 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'mysql_pymysql_engine' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 5442s def test_read_iris_table_chunksize(conn, request): 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:702: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def mysql_pymysql_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pymysql = pytest.importorskip("pymysql") 5442s engine = sqlalchemy.create_engine( 5442s "mysql+pymysql://root@localhost:3306/pandas", 5442s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s dialect = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s ______________ test_read_iris_table_chunksize[mysql_pymysql_conn] ______________ 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s > sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s sock.connect(sa) 5442s # Break explicitly a reference cycle 5442s exceptions.clear() 5442s return sock 5442s 5442s except error as exc: 5442s if not all_errors: 5442s exceptions.clear() # raise only the last error 5442s exceptions.append(exc) 5442s if sock is not None: 5442s sock.close() 5442s 5442s if len(exceptions): 5442s try: 5442s if not all_errors: 5442s > raise exceptions[0] 5442s 5442s /usr/lib/python3.12/socket.py:853: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s > sock.connect(sa) 5442s E ConnectionRefusedError: [Errno 111] Connection refused 5442s 5442s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5442s 5442s During handling of the above exception, another exception occurred: 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'mysql_pymysql_conn' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 5442s def test_read_iris_table_chunksize(conn, request): 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:702: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_conn' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_conn' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s > fixturedef = request._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def mysql_pymysql_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pymysql = pytest.importorskip("pymysql") 5442s engine = sqlalchemy.create_engine( 5442s "mysql+pymysql://root@localhost:3306/pandas", 5442s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s dialect = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s __________ test_read_iris_table_chunksize[postgresql_psycopg2_engine] __________ 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'postgresql_psycopg2_engine' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 5442s def test_read_iris_table_chunksize(conn, request): 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:702: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def postgresql_psycopg2_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pytest.importorskip("psycopg2") 5442s engine = sqlalchemy.create_engine( 5442s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s 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') 5442s dialect = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s E 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s ___________ test_read_iris_table_chunksize[postgresql_psycopg2_conn] ___________ 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'postgresql_psycopg2_conn' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", sqlalchemy_connectable_iris) 5442s def test_read_iris_table_chunksize(conn, request): 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:702: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_conn' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_conn' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s > fixturedef = request._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def postgresql_psycopg2_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pytest.importorskip("psycopg2") 5442s engine = sqlalchemy.create_engine( 5442s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s 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') 5442s dialect = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s E 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s __________________ test_to_sql_callable[mysql_pymysql_engine] __________________ 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s > sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s sock.connect(sa) 5442s # Break explicitly a reference cycle 5442s exceptions.clear() 5442s return sock 5442s 5442s except error as exc: 5442s if not all_errors: 5442s exceptions.clear() # raise only the last error 5442s exceptions.append(exc) 5442s if sock is not None: 5442s sock.close() 5442s 5442s if len(exceptions): 5442s try: 5442s if not all_errors: 5442s > raise exceptions[0] 5442s 5442s /usr/lib/python3.12/socket.py:853: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s > sock.connect(sa) 5442s E ConnectionRefusedError: [Errno 111] Connection refused 5442s 5442s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5442s 5442s During handling of the above exception, another exception occurred: 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'mysql_pymysql_engine' 5442s test_frame1 = index A B C D 5442s 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 5442s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", sqlalchemy_connectable) 5442s def test_to_sql_callable(conn, test_frame1, request): 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def mysql_pymysql_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pymysql = pytest.importorskip("pymysql") 5442s engine = sqlalchemy.create_engine( 5442s "mysql+pymysql://root@localhost:3306/pandas", 5442s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s dialect = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s ___________________ test_to_sql_callable[mysql_pymysql_conn] ___________________ 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s > sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s sock.connect(sa) 5442s # Break explicitly a reference cycle 5442s exceptions.clear() 5442s return sock 5442s 5442s except error as exc: 5442s if not all_errors: 5442s exceptions.clear() # raise only the last error 5442s exceptions.append(exc) 5442s if sock is not None: 5442s sock.close() 5442s 5442s if len(exceptions): 5442s try: 5442s if not all_errors: 5442s > raise exceptions[0] 5442s 5442s /usr/lib/python3.12/socket.py:853: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s > sock.connect(sa) 5442s E ConnectionRefusedError: [Errno 111] Connection refused 5442s 5442s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5442s 5442s During handling of the above exception, another exception occurred: 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'mysql_pymysql_conn' 5442s test_frame1 = index A B C D 5442s 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 5442s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", sqlalchemy_connectable) 5442s def test_to_sql_callable(conn, test_frame1, request): 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_conn' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_conn' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s > fixturedef = request._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def mysql_pymysql_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pymysql = pytest.importorskip("pymysql") 5442s engine = sqlalchemy.create_engine( 5442s "mysql+pymysql://root@localhost:3306/pandas", 5442s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s dialect = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s _______________ test_to_sql_callable[postgresql_psycopg2_engine] _______________ 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'postgresql_psycopg2_engine' 5442s test_frame1 = index A B C D 5442s 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 5442s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", sqlalchemy_connectable) 5442s def test_to_sql_callable(conn, test_frame1, request): 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def postgresql_psycopg2_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pytest.importorskip("psycopg2") 5442s engine = sqlalchemy.create_engine( 5442s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s 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') 5442s dialect = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s E 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s ________________ test_to_sql_callable[postgresql_psycopg2_conn] ________________ 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'postgresql_psycopg2_conn' 5442s test_frame1 = index A B C D 5442s 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 5442s 3 2000-01-06 00:00:00 1.120202 1.567621 0.003641 0.675253 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", sqlalchemy_connectable) 5442s def test_to_sql_callable(conn, test_frame1, request): 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_conn' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_conn' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s > fixturedef = request._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def postgresql_psycopg2_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pytest.importorskip("psycopg2") 5442s engine = sqlalchemy.create_engine( 5442s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s 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') 5442s dialect = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s E 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s ______________ test_default_type_conversion[mysql_pymysql_engine] ______________ 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s > sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s sock.connect(sa) 5442s # Break explicitly a reference cycle 5442s exceptions.clear() 5442s return sock 5442s 5442s except error as exc: 5442s if not all_errors: 5442s exceptions.clear() # raise only the last error 5442s exceptions.append(exc) 5442s if sock is not None: 5442s sock.close() 5442s 5442s if len(exceptions): 5442s try: 5442s if not all_errors: 5442s > raise exceptions[0] 5442s 5442s /usr/lib/python3.12/socket.py:853: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s > sock.connect(sa) 5442s E ConnectionRefusedError: [Errno 111] Connection refused 5442s 5442s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5442s 5442s During handling of the above exception, another exception occurred: 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'mysql_pymysql_engine' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", mysql_connectable) 5442s def test_default_type_conversion(conn, request): 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:731: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def mysql_pymysql_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pymysql = pytest.importorskip("pymysql") 5442s engine = sqlalchemy.create_engine( 5442s "mysql+pymysql://root@localhost:3306/pandas", 5442s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s dialect = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s _______________ test_default_type_conversion[mysql_pymysql_conn] _______________ 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s > sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s sock.connect(sa) 5442s # Break explicitly a reference cycle 5442s exceptions.clear() 5442s return sock 5442s 5442s except error as exc: 5442s if not all_errors: 5442s exceptions.clear() # raise only the last error 5442s exceptions.append(exc) 5442s if sock is not None: 5442s sock.close() 5442s 5442s if len(exceptions): 5442s try: 5442s if not all_errors: 5442s > raise exceptions[0] 5442s 5442s /usr/lib/python3.12/socket.py:853: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s > sock.connect(sa) 5442s E ConnectionRefusedError: [Errno 111] Connection refused 5442s 5442s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5442s 5442s During handling of the above exception, another exception occurred: 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'mysql_pymysql_conn' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", mysql_connectable) 5442s def test_default_type_conversion(conn, request): 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:731: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_conn' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_conn' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s > fixturedef = request._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def mysql_pymysql_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pymysql = pytest.importorskip("pymysql") 5442s engine = sqlalchemy.create_engine( 5442s "mysql+pymysql://root@localhost:3306/pandas", 5442s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s dialect = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s __________________ test_read_procedure[mysql_pymysql_engine] ___________________ 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s > sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s sock.connect(sa) 5442s # Break explicitly a reference cycle 5442s exceptions.clear() 5442s return sock 5442s 5442s except error as exc: 5442s if not all_errors: 5442s exceptions.clear() # raise only the last error 5442s exceptions.append(exc) 5442s if sock is not None: 5442s sock.close() 5442s 5442s if len(exceptions): 5442s try: 5442s if not all_errors: 5442s > raise exceptions[0] 5442s 5442s /usr/lib/python3.12/socket.py:853: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s > sock.connect(sa) 5442s E ConnectionRefusedError: [Errno 111] Connection refused 5442s 5442s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5442s 5442s During handling of the above exception, another exception occurred: 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'mysql_pymysql_engine' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", mysql_connectable) 5442s def test_read_procedure(conn, request): 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:750: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def mysql_pymysql_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pymysql = pytest.importorskip("pymysql") 5442s engine = sqlalchemy.create_engine( 5442s "mysql+pymysql://root@localhost:3306/pandas", 5442s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s dialect = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s ___________________ test_read_procedure[mysql_pymysql_conn] ____________________ 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s > sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s sock.connect(sa) 5442s # Break explicitly a reference cycle 5442s exceptions.clear() 5442s return sock 5442s 5442s except error as exc: 5442s if not all_errors: 5442s exceptions.clear() # raise only the last error 5442s exceptions.append(exc) 5442s if sock is not None: 5442s sock.close() 5442s 5442s if len(exceptions): 5442s try: 5442s if not all_errors: 5442s > raise exceptions[0] 5442s 5442s /usr/lib/python3.12/socket.py:853: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s > sock.connect(sa) 5442s E ConnectionRefusedError: [Errno 111] Connection refused 5442s 5442s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5442s 5442s During handling of the above exception, another exception occurred: 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'mysql_pymysql_conn' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", mysql_connectable) 5442s def test_read_procedure(conn, request): 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:750: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_conn' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_conn' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s > fixturedef = request._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def mysql_pymysql_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pymysql = pytest.importorskip("pymysql") 5442s engine = sqlalchemy.create_engine( 5442s "mysql+pymysql://root@localhost:3306/pandas", 5442s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s dialect = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s ____ test_copy_from_callable_insertion_method[2-postgresql_psycopg2_engine] ____ 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'postgresql_psycopg2_engine', expected_count = 2 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", postgresql_connectable) 5442s @pytest.mark.parametrize("expected_count", [2, "Success!"]) 5442s def test_copy_from_callable_insertion_method(conn, expected_count, request): 5442s # GH 8953 5442s # Example in io.rst found under _io.sql.method 5442s # not available in sqlite, mysql 5442s def psql_insert_copy(table, conn, keys, data_iter): 5442s # gets a DBAPI connection that can provide a cursor 5442s dbapi_conn = conn.connection 5442s with dbapi_conn.cursor() as cur: 5442s s_buf = StringIO() 5442s writer = csv.writer(s_buf) 5442s writer.writerows(data_iter) 5442s s_buf.seek(0) 5442s 5442s columns = ", ".join([f'"{k}"' for k in keys]) 5442s if table.schema: 5442s table_name = f"{table.schema}.{table.name}" 5442s else: 5442s table_name = table.name 5442s 5442s sql_query = f"COPY {table_name} ({columns}) FROM STDIN WITH CSV" 5442s cur.copy_expert(sql=sql_query, file=s_buf) 5442s return expected_count 5442s 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:811: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': ...st 'postgresql_psycopg2_engine' for >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': ...st 'postgresql_psycopg2_engine' for >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def postgresql_psycopg2_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pytest.importorskip("psycopg2") 5442s engine = sqlalchemy.create_engine( 5442s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s 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') 5442s dialect = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s E 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s _____ test_copy_from_callable_insertion_method[2-postgresql_psycopg2_conn] _____ 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'postgresql_psycopg2_conn', expected_count = 2 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", postgresql_connectable) 5442s @pytest.mark.parametrize("expected_count", [2, "Success!"]) 5442s def test_copy_from_callable_insertion_method(conn, expected_count, request): 5442s # GH 8953 5442s # Example in io.rst found under _io.sql.method 5442s # not available in sqlite, mysql 5442s def psql_insert_copy(table, conn, keys, data_iter): 5442s # gets a DBAPI connection that can provide a cursor 5442s dbapi_conn = conn.connection 5442s with dbapi_conn.cursor() as cur: 5442s s_buf = StringIO() 5442s writer = csv.writer(s_buf) 5442s writer.writerows(data_iter) 5442s s_buf.seek(0) 5442s 5442s columns = ", ".join([f'"{k}"' for k in keys]) 5442s if table.schema: 5442s table_name = f"{table.schema}.{table.name}" 5442s else: 5442s table_name = table.name 5442s 5442s sql_query = f"COPY {table_name} ({columns}) FROM STDIN WITH CSV" 5442s cur.copy_expert(sql=sql_query, file=s_buf) 5442s return expected_count 5442s 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:811: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_conn' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_conn' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s > fixturedef = request._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': ...uest 'postgresql_psycopg2_engine' for >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': ...uest 'postgresql_psycopg2_engine' for >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def postgresql_psycopg2_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pytest.importorskip("psycopg2") 5442s engine = sqlalchemy.create_engine( 5442s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s 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') 5442s dialect = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s E 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s _ test_copy_from_callable_insertion_method[Success!-postgresql_psycopg2_engine] _ 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'postgresql_psycopg2_engine', expected_count = 'Success!' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", postgresql_connectable) 5442s @pytest.mark.parametrize("expected_count", [2, "Success!"]) 5442s def test_copy_from_callable_insertion_method(conn, expected_count, request): 5442s # GH 8953 5442s # Example in io.rst found under _io.sql.method 5442s # not available in sqlite, mysql 5442s def psql_insert_copy(table, conn, keys, data_iter): 5442s # gets a DBAPI connection that can provide a cursor 5442s dbapi_conn = conn.connection 5442s with dbapi_conn.cursor() as cur: 5442s s_buf = StringIO() 5442s writer = csv.writer(s_buf) 5442s writer.writerows(data_iter) 5442s s_buf.seek(0) 5442s 5442s columns = ", ".join([f'"{k}"' for k in keys]) 5442s if table.schema: 5442s table_name = f"{table.schema}.{table.name}" 5442s else: 5442s table_name = table.name 5442s 5442s sql_query = f"COPY {table_name} ({columns}) FROM STDIN WITH CSV" 5442s cur.copy_expert(sql=sql_query, file=s_buf) 5442s return expected_count 5442s 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:811: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': ...tgresql_psycopg2_engine' for >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': ...tgresql_psycopg2_engine' for >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def postgresql_psycopg2_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pytest.importorskip("psycopg2") 5442s engine = sqlalchemy.create_engine( 5442s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s 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') 5442s dialect = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s E 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s _ test_copy_from_callable_insertion_method[Success!-postgresql_psycopg2_conn] __ 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'postgresql_psycopg2_conn', expected_count = 'Success!' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", postgresql_connectable) 5442s @pytest.mark.parametrize("expected_count", [2, "Success!"]) 5442s def test_copy_from_callable_insertion_method(conn, expected_count, request): 5442s # GH 8953 5442s # Example in io.rst found under _io.sql.method 5442s # not available in sqlite, mysql 5442s def psql_insert_copy(table, conn, keys, data_iter): 5442s # gets a DBAPI connection that can provide a cursor 5442s dbapi_conn = conn.connection 5442s with dbapi_conn.cursor() as cur: 5442s s_buf = StringIO() 5442s writer = csv.writer(s_buf) 5442s writer.writerows(data_iter) 5442s s_buf.seek(0) 5442s 5442s columns = ", ".join([f'"{k}"' for k in keys]) 5442s if table.schema: 5442s table_name = f"{table.schema}.{table.name}" 5442s else: 5442s table_name = table.name 5442s 5442s sql_query = f"COPY {table_name} ({columns}) FROM STDIN WITH CSV" 5442s cur.copy_expert(sql=sql_query, file=s_buf) 5442s return expected_count 5442s 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:811: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_conn' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_conn' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s > fixturedef = request._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': ...ostgresql_psycopg2_engine' for >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': ...ostgresql_psycopg2_engine' for >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def postgresql_psycopg2_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pytest.importorskip("psycopg2") 5442s engine = sqlalchemy.create_engine( 5442s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s 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') 5442s dialect = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s E 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s ___ test_insertion_method_on_conflict_do_nothing[postgresql_psycopg2_engine] ___ 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'postgresql_psycopg2_engine' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", postgresql_connectable) 5442s def test_insertion_method_on_conflict_do_nothing(conn, request): 5442s # GH 15988: Example in to_sql docstring 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:829: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': ... 'postgresql_psycopg2_engine' for >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': ... 'postgresql_psycopg2_engine' for >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def postgresql_psycopg2_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pytest.importorskip("psycopg2") 5442s engine = sqlalchemy.create_engine( 5442s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s 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') 5442s dialect = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s E 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s ____ test_insertion_method_on_conflict_do_nothing[postgresql_psycopg2_conn] ____ 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'postgresql_psycopg2_conn' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", postgresql_connectable) 5442s def test_insertion_method_on_conflict_do_nothing(conn, request): 5442s # GH 15988: Example in to_sql docstring 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:829: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_conn' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_conn' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s > fixturedef = request._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': ...st 'postgresql_psycopg2_engine' for >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': ...st 'postgresql_psycopg2_engine' for >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def postgresql_psycopg2_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pytest.importorskip("psycopg2") 5442s engine = sqlalchemy.create_engine( 5442s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s 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') 5442s dialect = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s E 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s ________ test_insertion_method_on_conflict_update[mysql_pymysql_engine] ________ 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s > sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s sock.connect(sa) 5442s # Break explicitly a reference cycle 5442s exceptions.clear() 5442s return sock 5442s 5442s except error as exc: 5442s if not all_errors: 5442s exceptions.clear() # raise only the last error 5442s exceptions.append(exc) 5442s if sock is not None: 5442s sock.close() 5442s 5442s if len(exceptions): 5442s try: 5442s if not all_errors: 5442s > raise exceptions[0] 5442s 5442s /usr/lib/python3.12/socket.py:853: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s > sock.connect(sa) 5442s E ConnectionRefusedError: [Errno 111] Connection refused 5442s 5442s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5442s 5442s During handling of the above exception, another exception occurred: 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'mysql_pymysql_engine' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", mysql_connectable) 5442s def test_insertion_method_on_conflict_update(conn, request): 5442s # GH 14553: Example in to_sql docstring 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:888: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def mysql_pymysql_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pymysql = pytest.importorskip("pymysql") 5442s engine = sqlalchemy.create_engine( 5442s "mysql+pymysql://root@localhost:3306/pandas", 5442s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s dialect = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s _________ test_insertion_method_on_conflict_update[mysql_pymysql_conn] _________ 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s > sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:649: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s sock.connect(sa) 5442s # Break explicitly a reference cycle 5442s exceptions.clear() 5442s return sock 5442s 5442s except error as exc: 5442s if not all_errors: 5442s exceptions.clear() # raise only the last error 5442s exceptions.append(exc) 5442s if sock is not None: 5442s sock.close() 5442s 5442s if len(exceptions): 5442s try: 5442s if not all_errors: 5442s > raise exceptions[0] 5442s 5442s /usr/lib/python3.12/socket.py:853: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s address = ('localhost', 3306), timeout = 10, source_address = None 5442s 5442s def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, 5442s source_address=None, *, all_errors=False): 5442s """Connect to *address* and return the socket object. 5442s 5442s Convenience function. Connect to *address* (a 2-tuple ``(host, 5442s port)``) and return the socket object. Passing the optional 5442s *timeout* parameter will set the timeout on the socket instance 5442s before attempting to connect. If no *timeout* is supplied, the 5442s global default timeout setting returned by :func:`getdefaulttimeout` 5442s is used. If *source_address* is set it must be a tuple of (host, port) 5442s for the socket to bind as a source address before making the connection. 5442s A host of '' or port 0 tells the OS to use the default. When a connection 5442s cannot be created, raises the last error if *all_errors* is False, 5442s and an ExceptionGroup of all errors if *all_errors* is True. 5442s """ 5442s 5442s host, port = address 5442s exceptions = [] 5442s for res in getaddrinfo(host, port, 0, SOCK_STREAM): 5442s af, socktype, proto, canonname, sa = res 5442s sock = None 5442s try: 5442s sock = socket(af, socktype, proto) 5442s if timeout is not _GLOBAL_DEFAULT_TIMEOUT: 5442s sock.settimeout(timeout) 5442s if source_address: 5442s sock.bind(source_address) 5442s > sock.connect(sa) 5442s E ConnectionRefusedError: [Errno 111] Connection refused 5442s 5442s /usr/lib/python3.12/socket.py:838: ConnectionRefusedError 5442s 5442s During handling of the above exception, another exception occurred: 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'mysql_pymysql_conn' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", mysql_connectable) 5442s def test_insertion_method_on_conflict_update(conn, request): 5442s # GH 14553: Example in to_sql docstring 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:888: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_conn' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_conn' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s > fixturedef = request._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'mysql_pymysql_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def mysql_pymysql_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pymysql = pytest.importorskip("pymysql") 5442s engine = sqlalchemy.create_engine( 5442s "mysql+pymysql://root@localhost:3306/pandas", 5442s connect_args={"client_flag": pymysql.constants.CLIENT.MULTI_STATEMENTS}, 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:409: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(mysql+pymysql://root@localhost:3306/pandas), raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s e = OperationalError(2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s dialect = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(mysql+pymysql://root@localhost:3306/pandas), connection = None 5442s _has_events = None, _allow_revalidate = True, _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(mysql+pymysql://root@localhost:3306/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'client_flag': 65536, 'database': 'pandas', 'host': 'localhost', 'port': 3306, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __init__( 5442s self, 5442s *, 5442s user=None, # The first four arguments is based on DB-API 2.0 recommendation. 5442s password="", 5442s host=None, 5442s database=None, 5442s unix_socket=None, 5442s port=0, 5442s charset="", 5442s collation=None, 5442s sql_mode=None, 5442s read_default_file=None, 5442s conv=None, 5442s use_unicode=True, 5442s client_flag=0, 5442s cursorclass=Cursor, 5442s init_command=None, 5442s connect_timeout=10, 5442s read_default_group=None, 5442s autocommit=False, 5442s local_infile=False, 5442s max_allowed_packet=16 * 1024 * 1024, 5442s defer_connect=False, 5442s auth_plugin_map=None, 5442s read_timeout=None, 5442s write_timeout=None, 5442s bind_address=None, 5442s binary_prefix=False, 5442s program_name=None, 5442s server_public_key=None, 5442s ssl=None, 5442s ssl_ca=None, 5442s ssl_cert=None, 5442s ssl_disabled=None, 5442s ssl_key=None, 5442s ssl_key_password=None, 5442s ssl_verify_cert=None, 5442s ssl_verify_identity=None, 5442s compress=None, # not supported 5442s named_pipe=None, # not supported 5442s passwd=None, # deprecated 5442s db=None, # deprecated 5442s ): 5442s if db is not None and database is None: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn("'db' is deprecated, use 'database'", DeprecationWarning, 3) 5442s database = db 5442s if passwd is not None and not password: 5442s # We will raise warning in 2022 or later. 5442s # See https://github.com/PyMySQL/PyMySQL/issues/939 5442s # warnings.warn( 5442s # "'passwd' is deprecated, use 'password'", DeprecationWarning, 3 5442s # ) 5442s password = passwd 5442s 5442s if compress or named_pipe: 5442s raise NotImplementedError( 5442s "compress and named_pipe arguments are not supported" 5442s ) 5442s 5442s self._local_infile = bool(local_infile) 5442s if self._local_infile: 5442s client_flag |= CLIENT.LOCAL_FILES 5442s 5442s if read_default_group and not read_default_file: 5442s if sys.platform.startswith("win"): 5442s read_default_file = "c:\\my.ini" 5442s else: 5442s read_default_file = "/etc/my.cnf" 5442s 5442s if read_default_file: 5442s if not read_default_group: 5442s read_default_group = "client" 5442s 5442s cfg = Parser() 5442s cfg.read(os.path.expanduser(read_default_file)) 5442s 5442s def _config(key, arg): 5442s if arg: 5442s return arg 5442s try: 5442s return cfg.get(read_default_group, key) 5442s except Exception: 5442s return arg 5442s 5442s user = _config("user", user) 5442s password = _config("password", password) 5442s host = _config("host", host) 5442s database = _config("database", database) 5442s unix_socket = _config("socket", unix_socket) 5442s port = int(_config("port", port)) 5442s bind_address = _config("bind-address", bind_address) 5442s charset = _config("default-character-set", charset) 5442s if not ssl: 5442s ssl = {} 5442s if isinstance(ssl, dict): 5442s for key in ["ca", "capath", "cert", "key", "password", "cipher"]: 5442s value = _config("ssl-" + key, ssl.get(key)) 5442s if value: 5442s ssl[key] = value 5442s 5442s self.ssl = False 5442s if not ssl_disabled: 5442s if ssl_ca or ssl_cert or ssl_key or ssl_verify_cert or ssl_verify_identity: 5442s ssl = { 5442s "ca": ssl_ca, 5442s "check_hostname": bool(ssl_verify_identity), 5442s "verify_mode": ssl_verify_cert 5442s if ssl_verify_cert is not None 5442s else False, 5442s } 5442s if ssl_cert is not None: 5442s ssl["cert"] = ssl_cert 5442s if ssl_key is not None: 5442s ssl["key"] = ssl_key 5442s if ssl_key_password is not None: 5442s ssl["password"] = ssl_key_password 5442s if ssl: 5442s if not SSL_ENABLED: 5442s raise NotImplementedError("ssl module not found") 5442s self.ssl = True 5442s client_flag |= CLIENT.SSL 5442s self.ctx = self._create_ssl_ctx(ssl) 5442s 5442s self.host = host or "localhost" 5442s self.port = port or 3306 5442s if type(self.port) is not int: 5442s raise ValueError("port should be of type int") 5442s self.user = user or DEFAULT_USER 5442s self.password = password or b"" 5442s if isinstance(self.password, str): 5442s self.password = self.password.encode("latin1") 5442s self.db = database 5442s self.unix_socket = unix_socket 5442s self.bind_address = bind_address 5442s if not (0 < connect_timeout <= 31536000): 5442s raise ValueError("connect_timeout should be >0 and <=31536000") 5442s self.connect_timeout = connect_timeout or None 5442s if read_timeout is not None and read_timeout <= 0: 5442s raise ValueError("read_timeout should be > 0") 5442s self._read_timeout = read_timeout 5442s if write_timeout is not None and write_timeout <= 0: 5442s raise ValueError("write_timeout should be > 0") 5442s self._write_timeout = write_timeout 5442s 5442s self.charset = charset or DEFAULT_CHARSET 5442s self.collation = collation 5442s self.use_unicode = use_unicode 5442s 5442s self.encoding = charset_by_name(self.charset).encoding 5442s 5442s client_flag |= CLIENT.CAPABILITIES 5442s if self.db: 5442s client_flag |= CLIENT.CONNECT_WITH_DB 5442s 5442s self.client_flag = client_flag 5442s 5442s self.cursorclass = cursorclass 5442s 5442s self._result = None 5442s self._affected_rows = 0 5442s self.host_info = "Not connected" 5442s 5442s # specified autocommit mode. None means use server default. 5442s self.autocommit_mode = autocommit 5442s 5442s if conv is None: 5442s conv = converters.conversions 5442s 5442s # Need for MySQLdb compatibility. 5442s self.encoders = {k: v for (k, v) in conv.items() if type(k) is not int} 5442s self.decoders = {k: v for (k, v) in conv.items() if type(k) is int} 5442s self.sql_mode = sql_mode 5442s self.init_command = init_command 5442s self.max_allowed_packet = max_allowed_packet 5442s self._auth_plugin_map = auth_plugin_map or {} 5442s self._binary_prefix = binary_prefix 5442s self.server_public_key = server_public_key 5442s 5442s self._connect_attrs = { 5442s "_client_name": "pymysql", 5442s "_client_version": VERSION_STRING, 5442s "_pid": str(os.getpid()), 5442s } 5442s 5442s if program_name: 5442s self._connect_attrs["program_name"] = program_name 5442s 5442s if defer_connect: 5442s self._sock = None 5442s else: 5442s > self.connect() 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:361: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = , sock = None 5442s 5442s def connect(self, sock=None): 5442s self._closed = False 5442s try: 5442s if sock is None: 5442s if self.unix_socket: 5442s sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) 5442s sock.settimeout(self.connect_timeout) 5442s sock.connect(self.unix_socket) 5442s self.host_info = "Localhost via UNIX socket" 5442s self._secure = True 5442s if DEBUG: 5442s print("connected using unix_socket") 5442s else: 5442s kwargs = {} 5442s if self.bind_address is not None: 5442s kwargs["source_address"] = (self.bind_address, 0) 5442s while True: 5442s try: 5442s sock = socket.create_connection( 5442s (self.host, self.port), self.connect_timeout, **kwargs 5442s ) 5442s break 5442s except OSError as e: 5442s if e.errno == errno.EINTR: 5442s continue 5442s raise 5442s self.host_info = "socket %s:%d" % (self.host, self.port) 5442s if DEBUG: 5442s print("connected using socket") 5442s sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) 5442s sock.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1) 5442s sock.settimeout(None) 5442s 5442s self._sock = sock 5442s self._rfile = sock.makefile("rb") 5442s self._next_seq_id = 0 5442s 5442s self._get_server_information() 5442s self._request_authentication() 5442s 5442s # Send "SET NAMES" query on init for: 5442s # - Ensure charaset (and collation) is set to the server. 5442s # - collation_id in handshake packet may be ignored. 5442s # - If collation is not specified, we don't know what is server's 5442s # default collation for the charset. For example, default collation 5442s # of utf8mb4 is: 5442s # - MySQL 5.7, MariaDB 10.x: utf8mb4_general_ci 5442s # - MySQL 8.0: utf8mb4_0900_ai_ci 5442s # 5442s # Reference: 5442s # - https://github.com/PyMySQL/PyMySQL/issues/1092 5442s # - https://github.com/wagtail/wagtail/issues/9477 5442s # - https://zenn.dev/methane/articles/2023-mysql-collation (Japanese) 5442s self.set_character_set(self.charset, self.collation) 5442s 5442s if self.sql_mode is not None: 5442s c = self.cursor() 5442s c.execute("SET sql_mode=%s", (self.sql_mode,)) 5442s c.close() 5442s 5442s if self.init_command is not None: 5442s c = self.cursor() 5442s c.execute(self.init_command) 5442s c.close() 5442s 5442s if self.autocommit_mode is not None: 5442s self.autocommit(self.autocommit_mode) 5442s except BaseException as e: 5442s self._rfile = None 5442s if sock is not None: 5442s try: 5442s sock.close() 5442s except: # noqa 5442s pass 5442s 5442s if isinstance(e, (OSError, IOError)): 5442s exc = err.OperationalError( 5442s CR.CR_CONN_HOST_ERROR, 5442s f"Can't connect to MySQL server on {self.host!r} ({e})", 5442s ) 5442s # Keep original exception and traceback to investigate error. 5442s exc.original_exception = e 5442s exc.traceback = traceback.format_exc() 5442s if DEBUG: 5442s print(exc.traceback) 5442s > raise exc 5442s E sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/pymysql/connections.py:716: OperationalError 5442s _____________ test_read_view_postgres[postgresql_psycopg2_engine] ______________ 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'postgresql_psycopg2_engine' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", postgresql_connectable) 5442s def test_read_view_postgres(conn, request): 5442s # GH 52969 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:942: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def postgresql_psycopg2_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pytest.importorskip("psycopg2") 5442s engine = sqlalchemy.create_engine( 5442s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s 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') 5442s dialect = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s E 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s ______________ test_read_view_postgres[postgresql_psycopg2_conn] _______________ 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s 5442s The above exception was the direct cause of the following exception: 5442s 5442s conn = 'postgresql_psycopg2_conn' 5442s request = > 5442s 5442s @pytest.mark.db 5442s @pytest.mark.parametrize("conn", postgresql_connectable) 5442s def test_read_view_postgres(conn, request): 5442s # GH 52969 5442s > conn = request.getfixturevalue(conn) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:942: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_conn' 5442s 5442s def getfixturevalue(self, argname: str) -> Any: 5442s """Dynamically run a named fixture function. 5442s 5442s Declaring fixtures via function argument is recommended where possible. 5442s But if you can only decide whether to use another fixture at test 5442s setup time, you may use this function to retrieve it inside a fixture 5442s or test function body. 5442s 5442s This method can be used during the test setup phase or the test run 5442s phase, but during the test teardown phase a fixture's value may not 5442s be available. 5442s 5442s :param argname: 5442s The fixture name. 5442s :raises pytest.FixtureLookupError: 5442s If the given fixture could not be found. 5442s """ 5442s # Note that in addition to the use case described in the docstring, 5442s # getfixturevalue() is also called by pytest itself during item and fixture 5442s # setup to evaluate the fixtures that are requested statically 5442s # (using function parameters, autouse, etc). 5442s 5442s > fixturedef = self._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:521: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_conn' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s > fixturedef = request._get_active_fixturedef(argname) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1038: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = > 5442s argname = 'postgresql_psycopg2_engine' 5442s 5442s def _get_active_fixturedef( 5442s self, argname: str 5442s ) -> Union["FixtureDef[object]", PseudoFixtureDef[object]]: 5442s if argname == "request": 5442s cached_result = (self, [0], None) 5442s return PseudoFixtureDef(cached_result, Scope.Function) 5442s 5442s # If we already finished computing a fixture by this name in this item, 5442s # return it. 5442s fixturedef = self._fixture_defs.get(argname) 5442s if fixturedef is not None: 5442s self._check_scope(fixturedef, fixturedef._scope) 5442s return fixturedef 5442s 5442s # Find the appropriate fixturedef. 5442s fixturedefs = self._arg2fixturedefs.get(argname, None) 5442s if fixturedefs is None: 5442s # We arrive here because of a dynamic call to 5442s # getfixturevalue(argname) which was naturally 5442s # not known at parsing/collection time. 5442s fixturedefs = self._fixturemanager.getfixturedefs(argname, self._pyfuncitem) 5442s if fixturedefs is not None: 5442s self._arg2fixturedefs[argname] = fixturedefs 5442s # No fixtures defined with this name. 5442s if fixturedefs is None: 5442s raise FixtureLookupError(argname, self) 5442s # The are no fixtures with this name applicable for the function. 5442s if not fixturedefs: 5442s raise FixtureLookupError(argname, self) 5442s # A fixture may override another fixture with the same name, e.g. a 5442s # fixture in a module can override a fixture in a conftest, a fixture in 5442s # a class can override a fixture in the module, and so on. 5442s # An overriding fixture can request its own name (possibly indirectly); 5442s # in this case it gets the value of the fixture it overrides, one level 5442s # up. 5442s # Check how many `argname`s deep we are, and take the next one. 5442s # `fixturedefs` is sorted from furthest to closest, so use negative 5442s # indexing to go in reverse. 5442s index = -1 5442s for request in self._iter_chain(): 5442s if request.fixturename == argname: 5442s index -= 1 5442s # If already consumed all of the available levels, fail. 5442s if -index > len(fixturedefs): 5442s raise FixtureLookupError(argname, self) 5442s fixturedef = fixturedefs[index] 5442s 5442s # Prepare a SubRequest object for calling the fixture. 5442s try: 5442s callspec = self._pyfuncitem.callspec 5442s except AttributeError: 5442s callspec = None 5442s if callspec is not None and argname in callspec.params: 5442s param = callspec.params[argname] 5442s param_index = callspec.indices[argname] 5442s # The parametrize invocation scope overrides the fixture's scope. 5442s scope = callspec._arg2scope[argname] 5442s else: 5442s param = NOTSET 5442s param_index = 0 5442s scope = fixturedef._scope 5442s self._check_fixturedef_without_param(fixturedef) 5442s self._check_scope(fixturedef, scope) 5442s subrequest = SubRequest( 5442s self, scope, param, param_index, fixturedef, _ispytest=True 5442s ) 5442s 5442s # Make sure the fixture value is cached, running it if it isn't 5442s > fixturedef.execute(request=subrequest) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:606: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s request = > 5442s 5442s def execute(self, request: SubRequest) -> FixtureValue: 5442s """Return the value of this fixture, executing it if not cached.""" 5442s # Ensure that the dependent fixtures requested by this fixture are loaded. 5442s # This needs to be done before checking if we have a cached value, since 5442s # if a dependent fixture has their cache invalidated, e.g. due to 5442s # parametrization, they finalize themselves and fixtures depending on it 5442s # (which will likely include this fixture) setting `self.cached_result = None`. 5442s # See #4871 5442s requested_fixtures_that_should_finalize_us = [] 5442s for argname in self.argnames: 5442s fixturedef = request._get_active_fixturedef(argname) 5442s # Saves requested fixtures in a list so we later can add our finalizer 5442s # to them, ensuring that if a requested fixture gets torn down we get torn 5442s # down first. This is generally handled by SetupState, but still currently 5442s # needed when this fixture is not parametrized but depends on a parametrized 5442s # fixture. 5442s if not isinstance(fixturedef, PseudoFixtureDef): 5442s requested_fixtures_that_should_finalize_us.append(fixturedef) 5442s 5442s # Check for (and return) cached value/exception. 5442s my_cache_key = self.cache_key(request) 5442s if self.cached_result is not None: 5442s cache_key = self.cached_result[1] 5442s # note: comparison with `==` can fail (or be expensive) for e.g. 5442s # numpy arrays (#6497). 5442s if my_cache_key is cache_key: 5442s if self.cached_result[2] is not None: 5442s exc = self.cached_result[2] 5442s raise exc 5442s else: 5442s result = self.cached_result[0] 5442s return result 5442s # We have a previous but differently parametrized fixture instance 5442s # so we need to tear it down before creating a new one. 5442s self.finish(request) 5442s assert self.cached_result is None 5442s 5442s # Add finalizer to requested fixtures we saved previously. 5442s # We make sure to do this after checking for cached value to avoid 5442s # adding our finalizer multiple times. (#12135) 5442s finalizer = functools.partial(self.finish, request=request) 5442s for parent_fixture in requested_fixtures_that_should_finalize_us: 5442s parent_fixture.addfinalizer(finalizer) 5442s 5442s ihook = request.node.ihook 5442s try: 5442s # Setup the fixture, run the code in it, and cache the value 5442s # in self.cached_result 5442s > result = ihook.pytest_fixture_setup(fixturedef=self, request=request) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1076: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def __call__(self, **kwargs: object) -> Any: 5442s """Call the hook. 5442s 5442s Only accepts keyword arguments, which should match the hook 5442s specification. 5442s 5442s Returns the result(s) of calling all registered plugins, see 5442s :ref:`calling`. 5442s """ 5442s assert ( 5442s not self.is_historic() 5442s ), "Cannot directly call a historic hook - use call_historic instead." 5442s self._verify_all_args_are_provided(kwargs) 5442s firstresult = self.spec.opts.get("firstresult", False) if self.spec else False 5442s # Copy because plugins may register other plugins during iteration (#438). 5442s > return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_hooks.py:513: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = <_pytest.config.PytestPluginManager object at 0xf17347c8> 5442s hook_name = 'pytest_fixture_setup' 5442s methods = [>] 5442s kwargs = {'fixturedef': , 'request': >} 5442s firstresult = True 5442s 5442s def _hookexec( 5442s self, 5442s hook_name: str, 5442s methods: Sequence[HookImpl], 5442s kwargs: Mapping[str, object], 5442s firstresult: bool, 5442s ) -> object | list[object]: 5442s # called from all hookcaller instances. 5442s # enable_tracing will set its own wrapping function at self._inner_hookexec 5442s > return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 5442s 5442s /usr/lib/python3/dist-packages/pluggy/_manager.py:120: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s @pytest.hookimpl(wrapper=True) 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[object], request: SubRequest 5442s ) -> Generator[None, object, object]: 5442s try: 5442s > return (yield) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/setuponly.py:36: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturedef = 5442s request = > 5442s 5442s def pytest_fixture_setup( 5442s fixturedef: FixtureDef[FixtureValue], request: SubRequest 5442s ) -> FixtureValue: 5442s """Execution of fixture setup.""" 5442s kwargs = {} 5442s for argname in fixturedef.argnames: 5442s kwargs[argname] = request.getfixturevalue(argname) 5442s 5442s fixturefunc = resolve_fixture_function(fixturedef, request) 5442s my_cache_key = fixturedef.cache_key(request) 5442s try: 5442s > result = call_fixture_func(fixturefunc, request, kwargs) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:1125: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s fixturefunc = 5442s request = > 5442s kwargs = {'iris_path': PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/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', ...}]} 5442s 5442s def call_fixture_func( 5442s fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs 5442s ) -> FixtureValue: 5442s if is_generator(fixturefunc): 5442s fixturefunc = cast( 5442s Callable[..., Generator[FixtureValue, None, None]], fixturefunc 5442s ) 5442s generator = fixturefunc(**kwargs) 5442s try: 5442s > fixture_result = next(generator) 5442s 5442s /usr/lib/python3/dist-packages/_pytest/fixtures.py:880: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s iris_path = PosixPath('/tmp/autopkgtest.7zWmJG/build.9HX/src/pandas/tests/io/data/csv/iris.csv') 5442s 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', ...}] 5442s 5442s @pytest.fixture 5442s def postgresql_psycopg2_engine(iris_path, types_data): 5442s sqlalchemy = pytest.importorskip("sqlalchemy") 5442s pytest.importorskip("psycopg2") 5442s engine = sqlalchemy.create_engine( 5442s "postgresql+psycopg2://postgres:postgres@localhost:5432/pandas", 5442s poolclass=sqlalchemy.pool.NullPool, 5442s ) 5442s > insp = sqlalchemy.inspect(engine) 5442s 5442s /usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:438: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s subject = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s raiseerr = True 5442s 5442s def inspect(subject: Any, raiseerr: bool = True) -> Any: 5442s """Produce an inspection object for the given target. 5442s 5442s The returned value in some cases may be the 5442s same object as the one given, such as if a 5442s :class:`_orm.Mapper` object is passed. In other 5442s cases, it will be an instance of the registered 5442s inspection type for the given object, such as 5442s if an :class:`_engine.Engine` is passed, an 5442s :class:`_reflection.Inspector` object is returned. 5442s 5442s :param subject: the subject to be inspected. 5442s :param raiseerr: When ``True``, if the given subject 5442s does not 5442s correspond to a known SQLAlchemy inspected type, 5442s :class:`sqlalchemy.exc.NoInspectionAvailable` 5442s is raised. If ``False``, ``None`` is returned. 5442s 5442s """ 5442s type_ = type(subject) 5442s for cls in type_.__mro__: 5442s if cls in _registrars: 5442s reg = _registrars.get(cls, None) 5442s if reg is None: 5442s continue 5442s elif reg is True: 5442s return subject 5442s > ret = reg(subject) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/inspection.py:140: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @inspection._inspects(Engine) 5442s def _engine_insp(bind: Engine) -> Inspector: # type: ignore[misc] 5442s > return Inspector._construct(Inspector._init_engine, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:303: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s init = 5442s bind = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s @classmethod 5442s def _construct( 5442s cls, init: Callable[..., Any], bind: Union[Engine, Connection] 5442s ) -> Inspector: 5442s if hasattr(bind.dialect, "inspector"): 5442s cls = bind.dialect.inspector 5442s 5442s self = cls.__new__(cls) 5442s > init(self, bind) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:236: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def _init_engine(self, engine: Engine) -> None: 5442s self.bind = self.engine = engine 5442s > engine.connect().close() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/reflection.py:247: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def connect(self) -> Connection: 5442s """Return a new :class:`_engine.Connection` object. 5442s 5442s The :class:`_engine.Connection` acts as a Python context manager, so 5442s the typical use of this method looks like:: 5442s 5442s with engine.connect() as connection: 5442s connection.execute(text("insert into table values ('foo')")) 5442s connection.commit() 5442s 5442s Where above, after the block is completed, the connection is "closed" 5442s and its underlying DBAPI resources are returned to the connection pool. 5442s This also has the effect of rolling back any transaction that 5442s was explicitly begun or was begun via autobegin, and will 5442s emit the :meth:`_events.ConnectionEvents.rollback` event if one was 5442s started and is still in progress. 5442s 5442s .. seealso:: 5442s 5442s :meth:`_engine.Engine.begin` 5442s 5442s """ 5442s 5442s > return self._connection_cls(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3276: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s self._dbapi_connection = engine.raw_connection() 5442s except dialect.loaded_dbapi.Error as err: 5442s > Connection._handle_dbapi_exception_noconnection( 5442s err, dialect, engine 5442s ) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s 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') 5442s dialect = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s is_disconnect = False, invalidate_pool_on_disconnect = True, is_pre_ping = False 5442s 5442s @classmethod 5442s def _handle_dbapi_exception_noconnection( 5442s cls, 5442s e: BaseException, 5442s dialect: Dialect, 5442s engine: Optional[Engine] = None, 5442s is_disconnect: Optional[bool] = None, 5442s invalidate_pool_on_disconnect: bool = True, 5442s is_pre_ping: bool = False, 5442s ) -> NoReturn: 5442s exc_info = sys.exc_info() 5442s 5442s if is_disconnect is None: 5442s is_disconnect = isinstance( 5442s e, dialect.loaded_dbapi.Error 5442s ) and dialect.is_disconnect(e, None, None) 5442s 5442s should_wrap = isinstance(e, dialect.loaded_dbapi.Error) 5442s 5442s if should_wrap: 5442s sqlalchemy_exception = exc.DBAPIError.instance( 5442s None, 5442s None, 5442s cast(Exception, e), 5442s dialect.loaded_dbapi.Error, 5442s hide_parameters=( 5442s engine.hide_parameters if engine is not None else False 5442s ), 5442s connection_invalidated=is_disconnect, 5442s dialect=dialect, 5442s ) 5442s else: 5442s sqlalchemy_exception = None 5442s 5442s newraise = None 5442s 5442s if dialect._has_events: 5442s ctx = ExceptionContextImpl( 5442s e, 5442s sqlalchemy_exception, 5442s engine, 5442s dialect, 5442s None, 5442s None, 5442s None, 5442s None, 5442s None, 5442s is_disconnect, 5442s invalidate_pool_on_disconnect, 5442s is_pre_ping, 5442s ) 5442s for fn in dialect.dispatch.handle_error: 5442s try: 5442s # handler returns an exception; 5442s # call next handler in a chain 5442s per_fn = fn(ctx) 5442s if per_fn is not None: 5442s ctx.chained_exception = newraise = per_fn 5442s except Exception as _raised: 5442s # handler raises an exception - stop processing 5442s newraise = _raised 5442s break 5442s 5442s if sqlalchemy_exception and is_disconnect != ctx.is_disconnect: 5442s sqlalchemy_exception.connection_invalidated = is_disconnect = ( 5442s ctx.is_disconnect 5442s ) 5442s 5442s if newraise: 5442s raise newraise.with_traceback(exc_info[2]) from e 5442s elif should_wrap: 5442s assert sqlalchemy_exception is not None 5442s > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2440: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s engine = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s connection = None, _has_events = None, _allow_revalidate = True 5442s _allow_autobegin = True 5442s 5442s def __init__( 5442s self, 5442s engine: Engine, 5442s connection: Optional[PoolProxiedConnection] = None, 5442s _has_events: Optional[bool] = None, 5442s _allow_revalidate: bool = True, 5442s _allow_autobegin: bool = True, 5442s ): 5442s """Construct a new Connection.""" 5442s self.engine = engine 5442s self.dialect = dialect = engine.dialect 5442s 5442s if connection is None: 5442s try: 5442s > self._dbapi_connection = engine.raw_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = Engine(postgresql+psycopg2://postgres:***@localhost:5432/pandas) 5442s 5442s def raw_connection(self) -> PoolProxiedConnection: 5442s """Return a "raw" DBAPI connection from the connection pool. 5442s 5442s The returned object is a proxied version of the DBAPI 5442s connection object used by the underlying driver in use. 5442s The object will have all the same behavior as the real DBAPI 5442s connection, except that its ``close()`` method will result in the 5442s connection being returned to the pool, rather than being closed 5442s for real. 5442s 5442s This method provides direct DBAPI connection access for 5442s special situations when the API provided by 5442s :class:`_engine.Connection` 5442s is not needed. When a :class:`_engine.Connection` object is already 5442s present, the DBAPI connection is available using 5442s the :attr:`_engine.Connection.connection` accessor. 5442s 5442s .. seealso:: 5442s 5442s :ref:`dbapi_connections` 5442s 5442s """ 5442s > return self.pool.connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3300: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def connect(self) -> PoolProxiedConnection: 5442s """Return a DBAPI connection from the pool. 5442s 5442s The connection is instrumented such that when its 5442s ``close()`` method is called, the connection will be returned to 5442s the pool. 5442s 5442s """ 5442s > return _ConnectionFairy._checkout(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = , threadconns = None 5442s fairy = None 5442s 5442s @classmethod 5442s def _checkout( 5442s cls, 5442s pool: Pool, 5442s threadconns: Optional[threading.local] = None, 5442s fairy: Optional[_ConnectionFairy] = None, 5442s ) -> _ConnectionFairy: 5442s if not fairy: 5442s > fairy = _ConnectionRecord.checkout(pool) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s cls = 5442s pool = 5442s 5442s @classmethod 5442s def checkout(cls, pool: Pool) -> _ConnectionFairy: 5442s if TYPE_CHECKING: 5442s rec = cast(_ConnectionRecord, pool._do_get()) 5442s else: 5442s > rec = pool._do_get() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _do_get(self) -> ConnectionPoolEntry: 5442s > return self._create_connection() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:308: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def _create_connection(self) -> ConnectionPoolEntry: 5442s """Called by subclasses to create a new ConnectionRecord.""" 5442s 5442s > return _ConnectionRecord(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s pool = , connect = True 5442s 5442s def __init__(self, pool: Pool, connect: bool = True): 5442s self.fresh = False 5442s self.fairy_ref = None 5442s self.starttime = 0 5442s self.dbapi_connection = None 5442s 5442s self.__pool = pool 5442s if connect: 5442s > self.__connect() 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s self.dbapi_connection = connection = pool._invoke_creator(self) 5442s pool.logger.debug("Created new connection %r", connection) 5442s self.fresh = True 5442s except BaseException as e: 5442s > with util.safe_reraise(): 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s type_ = None, value = None, traceback = None 5442s 5442s def __exit__( 5442s self, 5442s type_: Optional[Type[BaseException]], 5442s value: Optional[BaseException], 5442s traceback: Optional[types.TracebackType], 5442s ) -> NoReturn: 5442s assert self._exc_info is not None 5442s # see #2703 for notes 5442s if type_ is None: 5442s exc_type, exc_value, exc_tb = self._exc_info 5442s assert exc_value is not None 5442s self._exc_info = None # remove potential circular references 5442s > raise exc_value.with_traceback(exc_tb) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s 5442s def __connect(self) -> None: 5442s pool = self.__pool 5442s 5442s # ensure any existing connection is removed, so that if 5442s # creator fails, this attribute stays None 5442s self.dbapi_connection = None 5442s try: 5442s self.starttime = time.time() 5442s > self.dbapi_connection = connection = pool._invoke_creator(self) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s connection_record = 5442s 5442s def connect( 5442s connection_record: Optional[ConnectionPoolEntry] = None, 5442s ) -> DBAPIConnection: 5442s if dialect._has_events: 5442s for fn in dialect.dispatch.do_connect: 5442s connection = cast( 5442s DBAPIConnection, 5442s fn(dialect, connection_record, cargs, cparams), 5442s ) 5442s if connection is not None: 5442s return connection 5442s 5442s > return dialect.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s self = 5442s cargs = () 5442s cparams = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s 5442s def connect(self, *cargs, **cparams): 5442s # inherits the docstring from interfaces.Dialect.connect 5442s > return self.loaded_dbapi.connect(*cargs, **cparams) 5442s 5442s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:620: 5442s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 5442s 5442s dsn = 'host=localhost dbname=pandas user=postgres password=postgres port=5432' 5442s connection_factory = None, cursor_factory = None 5442s kwargs = {'dbname': 'pandas', 'host': 'localhost', 'password': 'postgres', 'port': 5432, ...} 5442s kwasync = {} 5442s 5442s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 5442s """ 5442s Create a new database connection. 5442s 5442s The connection parameters can be specified as a string: 5442s 5442s conn = psycopg2.connect("dbname=test user=postgres password=secret") 5442s 5442s or using a set of keyword arguments: 5442s 5442s conn = psycopg2.connect(database="test", user="postgres", password="secret") 5442s 5442s Or as a mix of both. The basic connection parameters are: 5442s 5442s - *dbname*: the database name 5442s - *database*: the database name (only as keyword argument) 5442s - *user*: user name used to authenticate 5442s - *password*: password used to authenticate 5442s - *host*: database host address (defaults to UNIX socket if not provided) 5442s - *port*: connection port number (defaults to 5432 if not provided) 5442s 5442s Using the *connection_factory* parameter a different class or connections 5442s factory can be specified. It should be a callable object taking a dsn 5442s argument. 5442s 5442s Using the *cursor_factory* parameter, a new default cursor factory will be 5442s used by cursor(). 5442s 5442s Using *async*=True an asynchronous connection will be created. *async_* is 5442s a valid alias (for Python versions where ``async`` is a keyword). 5442s 5442s Any other keyword parameter will be passed to the underlying client 5442s library: the list of supported parameters depends on the library version. 5442s 5442s """ 5442s kwasync = {} 5442s if 'async' in kwargs: 5442s kwasync['async'] = kwargs.pop('async') 5442s if 'async_' in kwargs: 5442s kwasync['async_'] = kwargs.pop('async_') 5442s 5442s dsn = _ext.make_dsn(dsn, **kwargs) 5442s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 5442s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused 5442s E Is the server running on that host and accepting TCP/IP connections? 5442s E 5442s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 5442s 5442s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 5442s =============================== warnings summary =============================== 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:546 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:554 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:575 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:591 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:602 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:614 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:627 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:640 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:653 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:675 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:688 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:699 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:709 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:728 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:747 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:785 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:825 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:884 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:938 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:2991 5442s /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 5442s @pytest.mark.db 5442s 5442s ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py:3027 5442s /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 5442s @pytest.mark.db 5442s 5442s io/test_sql.py: 531 warnings 5442s tools/test_to_datetime.py: 948 warnings 5442s /usr/lib/python3/dist-packages/py/_process/forkedfunc.py:45: DeprecationWarning: This process (pid=18606) is multi-threaded, use of fork() may lead to deadlocks in the child. 5442s pid = os.fork() 5442s 5442s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479 5442s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:479: 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-files-by2r9bmq' 5442s config.cache.set("cache/nodeids", sorted(self.cached_nodeids)) 5442s 5442s ../../../usr/lib/python3/dist-packages/_pytest/cacheprovider.py:431 5442s /usr/lib/python3/dist-packages/_pytest/cacheprovider.py:431: 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-files-3xolhdzp' 5442s config.cache.set("cache/lastfailed", self.lastfailed) 5442s 5442s ../../../usr/lib/python3/dist-packages/_pytest/stepwise.py:57 5442s /usr/lib/python3/dist-packages/_pytest/stepwise.py:57: 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-files-l0p3koxv' 5442s session.config.cache.set(STEPWISE_CACHE_DIR, []) 5442s 5442s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 5442s =========================== short test summary info ============================ 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_dataframe_to_sql[postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[None-postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql[multi-postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[replace-1-postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist[append-2-postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_exist_fail[postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query[postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_chunksize[postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_expression_with_parameter[postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_query_string_with_parameter[postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table[postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_iris_table_chunksize[postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_to_sql_callable[postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_default_type_conversion[mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_default_type_conversion[mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_procedure[mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_procedure[mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[2-postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[2-postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[Success!-postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_copy_from_callable_insertion_method[Success!-postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_do_nothing[postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_do_nothing[postgresql_psycopg2_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_update[mysql_pymysql_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_insertion_method_on_conflict_update[mysql_pymysql_conn] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_view_postgres[postgresql_psycopg2_engine] 5442s FAILED ../../../usr/lib/python3/dist-packages/pandas/tests/io/test_sql.py::test_read_view_postgres[postgresql_psycopg2_conn] 5442s = 66 failed, 1176 passed, 230 skipped, 7 xfailed, 1503 warnings in 827.09s (0:13:47) = 5442s autopkgtest [18:04:45]: test ignoredtests: -----------------------] 5447s autopkgtest [18:04:50]: test ignoredtests: - - - - - - - - - - results - - - - - - - - - - 5447s ignoredtests PASS 5451s autopkgtest [18:04:54]: @@@@@@@@@@@@@@@@@@@@ summary 5451s command1 PASS 5451s unittests3 PASS 5451s ignoredtests PASS