0s autopkgtest [06:11:46]: starting date and time: 2024-11-14 06:11:46+0000 0s autopkgtest [06:11:46]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [06:11:46]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.39m01qem/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:python3-defaults,src:python3-stdlib-extensions --apt-upgrade sqlalchemy-i18n --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=python3-defaults/3.12.7-1 python3-stdlib-extensions/3.12.7-1' -- lxd -r lxd-armhf-10.145.243.247 lxd-armhf-10.145.243.247:autopkgtest/ubuntu/plucky/armhf 53s autopkgtest [06:12:39]: testbed dpkg architecture: armhf 55s autopkgtest [06:12:41]: testbed apt version: 2.9.8 55s autopkgtest [06:12:41]: @@@@@@@@@@@@@@@@@@@@ test bed setup 63s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 63s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 63s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [987 kB] 63s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [98.6 kB] 63s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.4 kB] 63s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [103 kB] 63s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [684 kB] 63s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf Packages [5040 B] 64s Fetched 1973 kB in 1s (2116 kB/s) 64s Reading package lists... 81s tee: /proc/self/fd/2: Permission denied 103s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 103s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 103s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 103s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 104s Reading package lists... 104s Reading package lists... 105s Building dependency tree... 105s Reading state information... 105s Calculating upgrade... 106s The following NEW packages will be installed: 106s python3.13-gdbm 106s The following packages will be upgraded: 106s libpython3-stdlib python3 python3-gdbm python3-minimal 106s 4 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 106s Need to get 99.6 kB of archives. 106s After this operation, 91.1 kB of additional disk space will be used. 106s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf python3-minimal armhf 3.12.7-1 [27.4 kB] 106s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf python3 armhf 3.12.7-1 [24.0 kB] 106s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf libpython3-stdlib armhf 3.12.7-1 [10.0 kB] 106s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf python3.13-gdbm armhf 3.13.0-2 [29.5 kB] 106s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf python3-gdbm armhf 3.12.7-1 [8642 B] 107s Fetched 99.6 kB in 0s (285 kB/s) 107s (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 ... 59560 files and directories currently installed.) 107s Preparing to unpack .../python3-minimal_3.12.7-1_armhf.deb ... 107s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 107s Setting up python3-minimal (3.12.7-1) ... 107s (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 ... 59560 files and directories currently installed.) 107s Preparing to unpack .../python3_3.12.7-1_armhf.deb ... 107s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 107s Preparing to unpack .../libpython3-stdlib_3.12.7-1_armhf.deb ... 107s Unpacking libpython3-stdlib:armhf (3.12.7-1) over (3.12.6-0ubuntu1) ... 107s Selecting previously unselected package python3.13-gdbm. 107s Preparing to unpack .../python3.13-gdbm_3.13.0-2_armhf.deb ... 107s Unpacking python3.13-gdbm (3.13.0-2) ... 107s Preparing to unpack .../python3-gdbm_3.12.7-1_armhf.deb ... 107s Unpacking python3-gdbm:armhf (3.12.7-1) over (3.12.6-1ubuntu1) ... 107s Setting up python3.13-gdbm (3.13.0-2) ... 107s Setting up libpython3-stdlib:armhf (3.12.7-1) ... 107s Setting up python3 (3.12.7-1) ... 107s Setting up python3-gdbm:armhf (3.12.7-1) ... 107s Processing triggers for man-db (2.12.1-3) ... 108s Reading package lists... 109s Building dependency tree... 109s Reading state information... 109s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 111s autopkgtest [06:13:37]: rebooting testbed after setup commands that affected boot 177s autopkgtest [06:14:43]: testbed running kernel: Linux 6.8.0-48-generic #48~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 7 11:49:53 UTC 2 204s autopkgtest [06:15:10]: @@@@@@@@@@@@@@@@@@@@ apt-source sqlalchemy-i18n 214s Get:1 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (dsc) [2462 B] 214s Get:2 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (tar) [28.2 kB] 214s Get:3 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (diff) [4212 B] 215s gpgv: Signature made Wed Jan 18 23:54:36 2023 UTC 215s gpgv: using RSA key 439884E6862A429C290DF63B033C4CA276024834 215s gpgv: issuer "athos.ribeiro@canonical.com" 215s gpgv: Can't check signature: No public key 215s dpkg-source: warning: cannot verify inline signature for ./sqlalchemy-i18n_1.1.0-1build1.dsc: no acceptable signature found 215s autopkgtest [06:15:21]: testing package sqlalchemy-i18n version 1.1.0-1build1 217s autopkgtest [06:15:23]: build not needed 219s autopkgtest [06:15:25]: test setup-db-and-run-tests.py: preparing testbed 229s Reading package lists... 229s Building dependency tree... 229s Reading state information... 230s Starting pkgProblemResolver with broken count: 0 230s Starting 2 pkgProblemResolver with broken count: 0 230s Done 230s The following additional packages will be installed: 230s libjs-jquery libjs-sphinxdoc libjs-underscore libjson-perl libllvm19 libpq5 230s libxslt1.1 postgresql postgresql-16 postgresql-client-16 230s postgresql-client-common postgresql-common python3-arrow python3-dateutil 230s python3-greenlet python3-iniconfig python3-packaging python3-pluggy 230s python3-psycopg2 python3-pytest python3-six python3-sqlalchemy 230s python3-sqlalchemy-i18n python3-sqlalchemy-utils ssl-cert 230s Suggested packages: 230s postgresql-doc postgresql-doc-16 python-arrow-doc python-greenlet-dev 230s python-greenlet-doc python-psycopg2-doc python-sqlalchemy-doc 230s python3-asyncpg python3-pg8000 python3-psycopg2cffi python3-aiosqlite 230s python3-mariadb-connector python3-mysqldb python3-mysql.connector 230s python3-pyodbc python3-pymssql python3-cx-oracle python3-oracledb 230s python-sqlalchemy-utils-doc python3-infinity python3-intervals 230s Recommended packages: 230s javascript-common libjson-xs-perl python3-sqlalchemy-ext 230s The following NEW packages will be installed: 230s autopkgtest-satdep libjs-jquery libjs-sphinxdoc libjs-underscore 230s libjson-perl libllvm19 libpq5 libxslt1.1 postgresql postgresql-16 230s postgresql-client-16 postgresql-client-common postgresql-common 230s python3-arrow python3-dateutil python3-greenlet python3-iniconfig 230s python3-packaging python3-pluggy python3-psycopg2 python3-pytest python3-six 230s python3-sqlalchemy python3-sqlalchemy-i18n python3-sqlalchemy-utils ssl-cert 230s 0 upgraded, 26 newly installed, 0 to remove and 0 not upgraded. 230s Need to get 46.5 MB/46.5 MB of archives. 230s After this operation, 175 MB of additional disk space will be used. 230s Get:1 /tmp/autopkgtest.rCEPxO/1-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [744 B] 231s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf libjson-perl all 4.10000-1 [81.9 kB] 231s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf postgresql-client-common all 262 [36.7 kB] 231s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf ssl-cert all 1.1.2ubuntu2 [18.0 kB] 231s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf postgresql-common all 262 [162 kB] 231s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 231s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 231s Get:8 http://ftpmaster.internal/ubuntu plucky/main armhf libjs-sphinxdoc all 7.4.7-4 [158 kB] 231s Get:9 http://ftpmaster.internal/ubuntu plucky/main armhf libllvm19 armhf 1:19.1.2-1ubuntu1 [27.8 MB] 232s Get:10 http://ftpmaster.internal/ubuntu plucky/main armhf libpq5 armhf 17.0-1 [231 kB] 232s Get:11 http://ftpmaster.internal/ubuntu plucky/main armhf libxslt1.1 armhf 1.1.39-0exp1ubuntu1 [150 kB] 232s Get:12 http://ftpmaster.internal/ubuntu plucky/main armhf postgresql-client-16 armhf 16.4-3 [1236 kB] 232s Get:13 http://ftpmaster.internal/ubuntu plucky/main armhf postgresql-16 armhf 16.4-3 [14.2 MB] 233s Get:14 http://ftpmaster.internal/ubuntu plucky/main armhf postgresql all 16+262 [11.8 kB] 233s Get:15 http://ftpmaster.internal/ubuntu plucky/main armhf python3-six all 1.16.0-7 [13.1 kB] 233s Get:16 http://ftpmaster.internal/ubuntu plucky/main armhf python3-dateutil all 2.9.0-2 [80.3 kB] 233s Get:17 http://ftpmaster.internal/ubuntu plucky/main armhf python3-arrow all 1.3.0-1.1ubuntu1 [56.1 kB] 233s Get:18 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-iniconfig all 1.1.1-2 [6024 B] 233s Get:19 http://ftpmaster.internal/ubuntu plucky/main armhf python3-packaging all 24.1-1 [41.4 kB] 233s Get:20 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pluggy all 1.5.0-1 [21.0 kB] 233s Get:21 http://ftpmaster.internal/ubuntu plucky/main armhf python3-psycopg2 armhf 2.9.9-2 [122 kB] 233s Get:22 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-pytest all 8.3.3-1 [251 kB] 233s Get:23 http://ftpmaster.internal/ubuntu plucky/main armhf python3-greenlet armhf 3.0.3-0ubuntu6 [153 kB] 233s Get:24 http://ftpmaster.internal/ubuntu plucky/main armhf python3-sqlalchemy all 2.0.32+ds1-1ubuntu1 [1206 kB] 233s Get:25 http://ftpmaster.internal/ubuntu plucky/main armhf python3-sqlalchemy-utils all 0.41.1-0ubuntu1 [59.4 kB] 233s Get:26 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-sqlalchemy-i18n all 1.1.0-1build1 [26.7 kB] 233s Preconfiguring packages ... 233s Fetched 46.5 MB in 3s (17.5 MB/s) 233s Selecting previously unselected package libjson-perl. 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 ... 59567 files and directories currently installed.) 234s Preparing to unpack .../00-libjson-perl_4.10000-1_all.deb ... 234s Unpacking libjson-perl (4.10000-1) ... 234s Selecting previously unselected package postgresql-client-common. 234s Preparing to unpack .../01-postgresql-client-common_262_all.deb ... 234s Unpacking postgresql-client-common (262) ... 234s Selecting previously unselected package ssl-cert. 234s Preparing to unpack .../02-ssl-cert_1.1.2ubuntu2_all.deb ... 234s Unpacking ssl-cert (1.1.2ubuntu2) ... 234s Selecting previously unselected package postgresql-common. 234s Preparing to unpack .../03-postgresql-common_262_all.deb ... 234s Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by postgresql-common' 234s Unpacking postgresql-common (262) ... 234s Selecting previously unselected package libjs-jquery. 234s Preparing to unpack .../04-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 234s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 234s Selecting previously unselected package libjs-underscore. 234s Preparing to unpack .../05-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 234s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 234s Selecting previously unselected package libjs-sphinxdoc. 234s Preparing to unpack .../06-libjs-sphinxdoc_7.4.7-4_all.deb ... 234s Unpacking libjs-sphinxdoc (7.4.7-4) ... 234s Selecting previously unselected package libllvm19:armhf. 234s Preparing to unpack .../07-libllvm19_1%3a19.1.2-1ubuntu1_armhf.deb ... 234s Unpacking libllvm19:armhf (1:19.1.2-1ubuntu1) ... 235s Selecting previously unselected package libpq5:armhf. 235s Preparing to unpack .../08-libpq5_17.0-1_armhf.deb ... 235s Unpacking libpq5:armhf (17.0-1) ... 235s Selecting previously unselected package libxslt1.1:armhf. 235s Preparing to unpack .../09-libxslt1.1_1.1.39-0exp1ubuntu1_armhf.deb ... 235s Unpacking libxslt1.1:armhf (1.1.39-0exp1ubuntu1) ... 235s Selecting previously unselected package postgresql-client-16. 235s Preparing to unpack .../10-postgresql-client-16_16.4-3_armhf.deb ... 235s Unpacking postgresql-client-16 (16.4-3) ... 235s Selecting previously unselected package postgresql-16. 235s Preparing to unpack .../11-postgresql-16_16.4-3_armhf.deb ... 235s Unpacking postgresql-16 (16.4-3) ... 235s Selecting previously unselected package postgresql. 235s Preparing to unpack .../12-postgresql_16+262_all.deb ... 235s Unpacking postgresql (16+262) ... 235s Selecting previously unselected package python3-six. 235s Preparing to unpack .../13-python3-six_1.16.0-7_all.deb ... 235s Unpacking python3-six (1.16.0-7) ... 235s Selecting previously unselected package python3-dateutil. 235s Preparing to unpack .../14-python3-dateutil_2.9.0-2_all.deb ... 235s Unpacking python3-dateutil (2.9.0-2) ... 235s Selecting previously unselected package python3-arrow. 235s Preparing to unpack .../15-python3-arrow_1.3.0-1.1ubuntu1_all.deb ... 235s Unpacking python3-arrow (1.3.0-1.1ubuntu1) ... 235s Selecting previously unselected package python3-iniconfig. 235s Preparing to unpack .../16-python3-iniconfig_1.1.1-2_all.deb ... 235s Unpacking python3-iniconfig (1.1.1-2) ... 235s Selecting previously unselected package python3-packaging. 235s Preparing to unpack .../17-python3-packaging_24.1-1_all.deb ... 235s Unpacking python3-packaging (24.1-1) ... 235s Selecting previously unselected package python3-pluggy. 235s Preparing to unpack .../18-python3-pluggy_1.5.0-1_all.deb ... 235s Unpacking python3-pluggy (1.5.0-1) ... 235s Selecting previously unselected package python3-psycopg2. 235s Preparing to unpack .../19-python3-psycopg2_2.9.9-2_armhf.deb ... 235s Unpacking python3-psycopg2 (2.9.9-2) ... 235s Selecting previously unselected package python3-pytest. 236s Preparing to unpack .../20-python3-pytest_8.3.3-1_all.deb ... 236s Unpacking python3-pytest (8.3.3-1) ... 236s Selecting previously unselected package python3-greenlet. 236s Preparing to unpack .../21-python3-greenlet_3.0.3-0ubuntu6_armhf.deb ... 236s Unpacking python3-greenlet (3.0.3-0ubuntu6) ... 236s Selecting previously unselected package python3-sqlalchemy. 236s Preparing to unpack .../22-python3-sqlalchemy_2.0.32+ds1-1ubuntu1_all.deb ... 236s Unpacking python3-sqlalchemy (2.0.32+ds1-1ubuntu1) ... 236s Selecting previously unselected package python3-sqlalchemy-utils. 236s Preparing to unpack .../23-python3-sqlalchemy-utils_0.41.1-0ubuntu1_all.deb ... 236s Unpacking python3-sqlalchemy-utils (0.41.1-0ubuntu1) ... 236s Selecting previously unselected package python3-sqlalchemy-i18n. 236s Preparing to unpack .../24-python3-sqlalchemy-i18n_1.1.0-1build1_all.deb ... 236s Unpacking python3-sqlalchemy-i18n (1.1.0-1build1) ... 236s Selecting previously unselected package autopkgtest-satdep. 236s Preparing to unpack .../25-1-autopkgtest-satdep.deb ... 236s Unpacking autopkgtest-satdep (0) ... 236s Setting up postgresql-client-common (262) ... 236s Setting up python3-iniconfig (1.1.1-2) ... 236s Setting up libllvm19:armhf (1:19.1.2-1ubuntu1) ... 236s Setting up libpq5:armhf (17.0-1) ... 236s Setting up python3-six (1.16.0-7) ... 236s Setting up python3-packaging (24.1-1) ... 236s Setting up ssl-cert (1.1.2ubuntu2) ... 237s Created symlink '/etc/systemd/system/multi-user.target.wants/ssl-cert.service' → '/usr/lib/systemd/system/ssl-cert.service'. 238s Setting up python3-greenlet (3.0.3-0ubuntu6) ... 238s Setting up python3-psycopg2 (2.9.9-2) ... 238s Setting up python3-pluggy (1.5.0-1) ... 238s Setting up libjson-perl (4.10000-1) ... 238s Setting up libxslt1.1:armhf (1.1.39-0exp1ubuntu1) ... 238s Setting up python3-dateutil (2.9.0-2) ... 238s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 238s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 238s Setting up python3-arrow (1.3.0-1.1ubuntu1) ... 238s Setting up python3-pytest (8.3.3-1) ... 239s Setting up postgresql-client-16 (16.4-3) ... 239s update-alternatives: using /usr/share/postgresql/16/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode 239s Setting up python3-sqlalchemy (2.0.32+ds1-1ubuntu1) ... 240s Setting up postgresql-common (262) ... 241s 241s Creating config file /etc/postgresql-common/createcluster.conf with new version 241s Building PostgreSQL dictionaries from installed myspell/hunspell packages... 241s Removing obsolete dictionary files: 242s Created symlink '/etc/systemd/system/multi-user.target.wants/postgresql.service' → '/usr/lib/systemd/system/postgresql.service'. 242s Setting up libjs-sphinxdoc (7.4.7-4) ... 242s Setting up python3-sqlalchemy-utils (0.41.1-0ubuntu1) ... 242s Setting up python3-sqlalchemy-i18n (1.1.0-1build1) ... 243s Setting up postgresql-16 (16.4-3) ... 244s Creating new PostgreSQL cluster 16/main ... 244s /usr/lib/postgresql/16/bin/initdb -D /var/lib/postgresql/16/main --auth-local peer --auth-host scram-sha-256 --no-instructions 244s The files belonging to this database system will be owned by user "postgres". 244s This user must also own the server process. 244s 244s The database cluster will be initialized with locale "C.UTF-8". 244s The default database encoding has accordingly been set to "UTF8". 244s The default text search configuration will be set to "english". 244s 244s Data page checksums are disabled. 244s 244s fixing permissions on existing directory /var/lib/postgresql/16/main ... ok 244s creating subdirectories ... ok 244s selecting dynamic shared memory implementation ... posix 244s selecting default max_connections ... 100 244s selecting default shared_buffers ... 128MB 244s selecting default time zone ... Etc/UTC 244s creating configuration files ... ok 244s running bootstrap script ... ok 244s performing post-bootstrap initialization ... ok 244s syncing data to disk ... ok 247s Setting up postgresql (16+262) ... 247s Setting up autopkgtest-satdep (0) ... 247s Processing triggers for man-db (2.12.1-3) ... 248s Processing triggers for libc-bin (2.40-1ubuntu3) ... 260s (Reading database ... 62357 files and directories currently installed.) 260s Removing autopkgtest-satdep (0) ... 266s autopkgtest [06:16:12]: test setup-db-and-run-tests.py: [----------------------- 268s The files belonging to this database system will be owned by user "ubuntu". 268s This user must also own the server process. 268s 268s The database cluster will be initialized with this locale configuration: 268s provider: libc 268s LC_COLLATE: C.UTF-8 268s LC_CTYPE: C.UTF-8 268s LC_MESSAGES: C 268s LC_MONETARY: C.UTF-8 268s LC_NUMERIC: C.UTF-8 268s LC_TIME: C.UTF-8 268s The default database encoding has accordingly been set to "UTF8". 268s The default text search configuration will be set to "english". 268s 268s Data page checksums are disabled. 268s 268s creating directory /tmp/tmpcebhj5wf/data ... ok 268s creating subdirectories ... ok 268s selecting dynamic shared memory implementation ... posix 268s selecting default max_connections ... 100 268s selecting default shared_buffers ... 128MB 268s selecting default time zone ... Etc/UTC 268s creating configuration files ... ok 268s running bootstrap script ... ok 269s performing post-bootstrap initialization ... ok 270s syncing data to disk ... ok 270s 270s Success. You can now start the database server using: 270s 270s /usr/lib/postgresql/16/bin/pg_ctl -D /tmp/tmpcebhj5wf/data -l logfile start 270s 270s 2024-11-14 06:16:16.319 UTC [3237] LOG: starting PostgreSQL 16.4 (Ubuntu 16.4-3) on arm-unknown-linux-gnueabihf, compiled by gcc (Ubuntu 14.2.0-7ubuntu1) 14.2.0, 32-bit 270s 2024-11-14 06:16:16.319 UTC [3237] LOG: listening on IPv4 address "127.0.0.1", port 56057 270s 2024-11-14 06:16:16.319 UTC [3237] LOG: listening on Unix socket "/tmp/tmpcebhj5wf/tmp/.s.PGSQL.56057" 270s 2024-11-14 06:16:16.321 UTC [3240] LOG: database system was shut down at 2024-11-14 06:16:15 UTC 270s 2024-11-14 06:16:16.326 UTC [3237] LOG: database system is ready to accept connections 271s running initdb 271s starting server 271s ============================= test session starts ============================== 271s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 271s rootdir: /tmp/autopkgtest.rCEPxO/build.9c4/src 271s plugins: typeguard-4.4.1 271s collected 119 items 271s 271s tests/test_common_base_class.py EE [ 1%] 272s tests/test_comparator.py EEEE [ 5%] 272s tests/test_composite_primary_key.py EE [ 6%] 272s tests/test_configuration.py EE [ 8%] 273s tests/test_current_translation_property.py EEEEEE [ 13%] 274s tests/test_current_translation_property_with_locale.py EE [ 15%] 274s tests/test_custom_base_class.py E [ 15%] 274s tests/test_expressions.py . [ 16%] 275s tests/test_fallback_locale_as_callable.py EEEE [ 20%] 276s tests/test_fallback_locale_without_class_default.py EEEE [ 23%] 276s tests/test_fallback_translation.py EEEEEE [ 28%] 277s tests/test_find_translations.py EEEE [ 31%] 277s tests/test_hybrid_property_as_dynamic_source_locale.py EE [ 33%] 277s tests/test_hybrid_property_exclusion.py FE [ 35%] 279s tests/test_join_expressions.py EEEEEEEE [ 42%] 280s tests/test_joined_loading.py EEEEEEEEEE [ 50%] 283s tests/test_joined_table_inheritance.py EEEEEEEEEEEEEEEE [ 63%] 283s tests/test_property_collision.py . [ 64%] 283s tests/test_relationships.py EE [ 66%] 286s tests/test_translatable.py EEEEEEEEEEEEEEEE [ 79%] 286s tests/test_translation_auto_creation.py EE [ 81%] 287s tests/test_translation_auto_creation_with_non_nullables.py EE [ 83%] 288s tests/test_translation_mapping.py EEEE2024-11-14 06:16:34.195 UTC [3347] FATAL: sorry, too many clients already 288s E2024-11-14 06:16:34.522 UTC [3348] FATAL: sorry, too many clients already 288s E2024-11-14 06:16:34.856 UTC [3349] FATAL: sorry, too many clients already 289s E2024-11-14 06:16:35.181 UTC [3350] FATAL: sorry, too many clients already 289s E2024-11-14 06:16:35.510 UTC [3351] FATAL: sorry, too many clients already 289s E2024-11-14 06:16:35.836 UTC [3352] FATAL: sorry, too many clients already 290s E2024-11-14 06:16:36.167 UTC [3353] FATAL: sorry, too many clients already 290s E2024-11-14 06:16:36.507 UTC [3354] FATAL: sorry, too many clients already 290s E2024-11-14 06:16:36.834 UTC [3355] FATAL: sorry, too many clients already 291s E2024-11-14 06:16:37.160 UTC [3356] FATAL: sorry, too many clients already 291s E2024-11-14 06:16:37.504 UTC [3357] FATAL: sorry, too many clients already 291s E2024-11-14 06:16:37.953 UTC [3358] FATAL: sorry, too many clients already 292s E2024-11-14 06:16:38.278 UTC [3359] FATAL: sorry, too many clients already 292s E2024-11-14 06:16:38.605 UTC [3360] FATAL: sorry, too many clients already 292s E2024-11-14 06:16:38.943 UTC [3361] FATAL: sorry, too many clients already 293s E2024-11-14 06:16:39.269 UTC [3362] FATAL: sorry, too many clients already 293s E [100%] 293s 293s ==================================== ERRORS ==================================== 293s _ ERROR at setup of TestDeclarative.test_translatable_dict_copied_to_each_child_class _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'TextItem' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _ ERROR at setup of TestClassic.test_translatable_dict_copied_to_each_child_class _ 293s 293s self = 293s 293s def create_mappers(self): 293s > sa.orm.mapper(self.TextItem, self.textitems) 293s 293s tests/test_common_base_class.py:105: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.TextItem'>, Table('textitems', MetaData(), Column('id', Integer(), table=, primary_key=True, nullable=False), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _ ERROR at setup of TestDeclarative.test_attribute_accessor_for_unknown_locale _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s __________ ERROR at setup of TestDeclarative.test_attribute_accessors __________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ___ ERROR at setup of TestClassic.test_attribute_accessor_for_unknown_locale ___ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ____________ ERROR at setup of TestClassic.test_attribute_accessors ____________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _____________ ERROR at setup of TestDeclarative.test_relationships _____________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _______________ ERROR at setup of TestClassic.test_relationships _______________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), C...y_key=True, nullable=False), Column('id2', Integer(), table=
, primary_key=True, nullable=False), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _ ERROR at setup of TestTranslationBaseCustomization.test_customize_foreign_key_args _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _ ERROR at setup of TestTranslationBaseCustomization.test_customize_relationships_args _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s __________ ERROR at setup of TestDeclarative.test_as_object_property ___________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ___________ ERROR at setup of TestDeclarative.test_as_class_property ___________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ________________ ERROR at setup of TestDeclarative.test_setter _________________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ____________ ERROR at setup of TestClassic.test_as_object_property _____________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _____________ ERROR at setup of TestClassic.test_as_class_property _____________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s __________________ ERROR at setup of TestClassic.test_setter ___________________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ___ ERROR at setup of TestDeclarative.test_converts_locale_object_to_unicode ___ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _____ ERROR at setup of TestClassic.test_converts_locale_object_to_unicode _____ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('arti...able=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _ ERROR at setup of TestDeclarative.test_translatable_dict_copied_to_each_child_class _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _ ERROR at setup of TestDeclarative.test_hybrid_properties_support_callable_fallback_locales _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ____________ ERROR at setup of TestDeclarative.test_locale_fallback ____________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _ ERROR at setup of TestClassic.test_hybrid_properties_support_callable_fallback_locales _ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaDat...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ______________ ERROR at setup of TestClassic.test_locale_fallback ______________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaDat...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _ ERROR at setup of TestDeclarative.test_hybrid_properties_support_callable_fallback_locales _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ____________ ERROR at setup of TestDeclarative.test_locale_fallback ____________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _ ERROR at setup of TestClassic.test_hybrid_properties_support_callable_fallback_locales _ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ______________ ERROR at setup of TestClassic.test_locale_fallback ______________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _ ERROR at setup of TestDeclarative.test_as_object_property_with_force_locale __ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ___________ ERROR at setup of TestDeclarative.test_as_class_property ___________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ________________ ERROR at setup of TestDeclarative.test_setter _________________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ___ ERROR at setup of TestClassic.test_as_object_property_with_force_locale ____ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _____________ ERROR at setup of TestClassic.test_as_class_property _____________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s __________________ ERROR at setup of TestClassic.test_setter ___________________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _________ ERROR at setup of TestDeclarative.test_with_full_confidence __________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ________ ERROR at setup of TestDeclarative.test_with_varying_confidence ________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi', 'sv'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ___________ ERROR at setup of TestClassic.test_with_full_confidence ____________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s __________ ERROR at setup of TestClassic.test_with_varying_confidence __________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s __ ERROR at setup of TestDeclarative.test_joinedload_for_current_translation ___ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > DeclarativeTestCase.setup_method(self, method) 293s 293s tests/test_hybrid_property_as_dynamic_source_locale.py:25: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:57: in setup_method 293s sa.orm.configure_mappers() 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi', 'sv'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ____ ERROR at setup of TestClassic.test_joinedload_for_current_translation _____ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > ClassicTestCase.setup_method(self, method) 293s 293s tests/test_hybrid_property_as_dynamic_source_locale.py:61: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:140: in setup_method 293s self.create_mappers() 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('arti...
), Column('_locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ____ ERROR at setup of TestClassic.test_does_not_generate_hybrid_properties ____ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(...e=
, default=ScalarElementColumnDefault('en')), Column('word_count', Integer(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ___ ERROR at setup of TestDeclarative.test_current_translation_as_expression ___ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _________ ERROR at setup of TestDeclarative.test_order_by_translation __________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _____ ERROR at setup of TestDeclarative.test_fallback_locale_as_expression _____ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _______________ ERROR at setup of TestDeclarative.test_querying ________________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _____ ERROR at setup of TestClassic.test_current_translation_as_expression _____ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ___________ ERROR at setup of TestClassic.test_order_by_translation ____________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _______ ERROR at setup of TestClassic.test_fallback_locale_as_expression _______ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _________________ ERROR at setup of TestClassic.test_querying __________________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s __ ERROR at setup of TestDeclarative.test_joinedload_for_current_translation ___ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > DeclarativeTestCase.setup_method(self, method) 293s 293s tests/test_joined_loading.py:59: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:57: in setup_method 293s sa.orm.configure_mappers() 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _ ERROR at setup of TestDeclarative.test_contains_eager_for_current_translation _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > DeclarativeTestCase.setup_method(self, method) 293s 293s tests/test_joined_loading.py:59: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:57: in setup_method 293s sa.orm.configure_mappers() 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ___ ERROR at setup of TestDeclarative.test_joinedload_for_single_translation ___ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > DeclarativeTestCase.setup_method(self, method) 293s 293s tests/test_joined_loading.py:59: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:57: in setup_method 293s sa.orm.configure_mappers() 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _____ ERROR at setup of TestDeclarative.test_joinedload_for_attr_accessor ______ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > DeclarativeTestCase.setup_method(self, method) 293s 293s tests/test_joined_loading.py:59: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:57: in setup_method 293s sa.orm.configure_mappers() 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ____ ERROR at setup of TestDeclarative.test_joinedload_for_all_translations ____ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > DeclarativeTestCase.setup_method(self, method) 293s 293s tests/test_joined_loading.py:59: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:57: in setup_method 293s sa.orm.configure_mappers() 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ____ ERROR at setup of TestClassic.test_joinedload_for_current_translation _____ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > ClassicTestCase.setup_method(self, method) 293s 293s tests/test_joined_loading.py:71: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:140: in setup_method 293s self.create_mappers() 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s __ ERROR at setup of TestClassic.test_contains_eager_for_current_translation ___ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > ClassicTestCase.setup_method(self, method) 293s 293s tests/test_joined_loading.py:71: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:140: in setup_method 293s self.create_mappers() 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _____ ERROR at setup of TestClassic.test_joinedload_for_single_translation _____ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > ClassicTestCase.setup_method(self, method) 293s 293s tests/test_joined_loading.py:71: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:140: in setup_method 293s self.create_mappers() 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _______ ERROR at setup of TestClassic.test_joinedload_for_attr_accessor ________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > ClassicTestCase.setup_method(self, method) 293s 293s tests/test_joined_loading.py:71: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:140: in setup_method 293s self.create_mappers() 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ______ ERROR at setup of TestClassic.test_joinedload_for_all_translations ______ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > ClassicTestCase.setup_method(self, method) 293s 293s tests/test_joined_loading.py:71: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:140: in setup_method 293s self.create_mappers() 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ________ ERROR at setup of TestDeclarative.test_auto_creates_relations _________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 293s mapper._adapt_inherited_property(key, prop, init) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 293s self._configure_property(key, prop, init=False, setparent=False) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 293s prop.instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 293s attributes.register_descriptor( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 293s descriptor = InstrumentedAttribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 293s self.dispatch._update(base[key].dispatch) 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ___ ERROR at setup of TestDeclarative.test_auto_creates_current_translation ____ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 293s mapper._adapt_inherited_property(key, prop, init) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 293s self._configure_property(key, prop, init=False, setparent=False) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 293s prop.instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 293s attributes.register_descriptor( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 293s descriptor = InstrumentedAttribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 293s self.dispatch._update(base[key].dispatch) 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ________ ERROR at setup of TestDeclarative.test_translatable_attributes ________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 293s mapper._adapt_inherited_property(key, prop, init) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 293s self._configure_property(key, prop, init=False, setparent=False) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 293s prop.instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 293s attributes.register_descriptor( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 293s descriptor = InstrumentedAttribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 293s self.dispatch._update(base[key].dispatch) 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _______ ERROR at setup of TestDeclarative.test_inherits_child_properties _______ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 293s mapper._adapt_inherited_property(key, prop, init) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 293s self._configure_property(key, prop, init=False, setparent=False) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 293s prop.instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 293s attributes.register_descriptor( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 293s descriptor = InstrumentedAttribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 293s self.dispatch._update(base[key].dispatch) 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s __________ ERROR at setup of TestDeclarative.test_translated_columns ___________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 293s mapper._adapt_inherited_property(key, prop, init) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 293s self._configure_property(key, prop, init=False, setparent=False) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 293s prop.instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 293s attributes.register_descriptor( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 293s descriptor = InstrumentedAttribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 293s self.dispatch._update(base[key].dispatch) 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s __________ ERROR at setup of TestDeclarative.test_property_delegators __________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 293s mapper._adapt_inherited_property(key, prop, init) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 293s self._configure_property(key, prop, init=False, setparent=False) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 293s prop.instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 293s attributes.register_descriptor( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 293s descriptor = InstrumentedAttribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 293s self.dispatch._update(base[key].dispatch) 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ______________ ERROR at setup of TestDeclarative.test_table_name _______________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 293s mapper._adapt_inherited_property(key, prop, init) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 293s self._configure_property(key, prop, init=False, setparent=False) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 293s prop.instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 293s attributes.register_descriptor( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 293s descriptor = InstrumentedAttribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 293s self.dispatch._update(base[key].dispatch) 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _________ ERROR at setup of TestDeclarative.test_inherits_parent_table _________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 293s mapper._adapt_inherited_property(key, prop, init) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 293s self._configure_property(key, prop, init=False, setparent=False) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 293s prop.instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 293s attributes.register_descriptor( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 293s descriptor = InstrumentedAttribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 293s self.dispatch._update(base[key].dispatch) 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s __________ ERROR at setup of TestClassic.test_auto_creates_relations ___________ 293s 293s self = 293s 293s def create_mappers(self): 293s > sa.orm.mapper(self.TextItem, self.text_item, 293s polymorphic_on=self.text_item.c.discriminator) 293s 293s tests/test_joined_table_inheritance.py:155: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 293s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _____ ERROR at setup of TestClassic.test_auto_creates_current_translation ______ 293s 293s self = 293s 293s def create_mappers(self): 293s > sa.orm.mapper(self.TextItem, self.text_item, 293s polymorphic_on=self.text_item.c.discriminator) 293s 293s tests/test_joined_table_inheritance.py:155: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 293s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s __________ ERROR at setup of TestClassic.test_translatable_attributes __________ 293s 293s self = 293s 293s def create_mappers(self): 293s > sa.orm.mapper(self.TextItem, self.text_item, 293s polymorphic_on=self.text_item.c.discriminator) 293s 293s tests/test_joined_table_inheritance.py:155: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 293s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _________ ERROR at setup of TestClassic.test_inherits_child_properties _________ 293s 293s self = 293s 293s def create_mappers(self): 293s > sa.orm.mapper(self.TextItem, self.text_item, 293s polymorphic_on=self.text_item.c.discriminator) 293s 293s tests/test_joined_table_inheritance.py:155: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 293s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ____________ ERROR at setup of TestClassic.test_translated_columns _____________ 293s 293s self = 293s 293s def create_mappers(self): 293s > sa.orm.mapper(self.TextItem, self.text_item, 293s polymorphic_on=self.text_item.c.discriminator) 293s 293s tests/test_joined_table_inheritance.py:155: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 293s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ____________ ERROR at setup of TestClassic.test_property_delegators ____________ 293s 293s self = 293s 293s def create_mappers(self): 293s > sa.orm.mapper(self.TextItem, self.text_item, 293s polymorphic_on=self.text_item.c.discriminator) 293s 293s tests/test_joined_table_inheritance.py:155: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 293s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ________________ ERROR at setup of TestClassic.test_table_name _________________ 293s 293s self = 293s 293s def create_mappers(self): 293s > sa.orm.mapper(self.TextItem, self.text_item, 293s polymorphic_on=self.text_item.c.discriminator) 293s 293s tests/test_joined_table_inheritance.py:155: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 293s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ___________ ERROR at setup of TestClassic.test_inherits_parent_table ___________ 293s 293s self = 293s 293s def create_mappers(self): 293s > sa.orm.mapper(self.TextItem, self.text_item, 293s polymorphic_on=self.text_item.c.discriminator) 293s 293s tests/test_joined_table_inheritance.py:155: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 293s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ___________ ERROR at setup of TestDeclarative.test_nullify_relation ____________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Category' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _____________ ERROR at setup of TestClassic.test_nullify_relation ______________ 293s 293s self = 293s 293s def create_mappers(self): 293s > sa.orm.mapper(self.Article, self.article) 293s 293s tests/test_relationships.py:101: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('i...), table=
, primary_key=True, nullable=False), Column('content', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ________ ERROR at setup of TestDeclarative.test_auto_creates_relations _________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ________ ERROR at setup of TestDeclarative.test_translatable_attributes ________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _______ ERROR at setup of TestDeclarative.test_relationship_consistency ________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s __________ ERROR at setup of TestDeclarative.test_property_delegators __________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ____________ ERROR at setup of TestDeclarative.test_commit_session _____________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ________________ ERROR at setup of TestDeclarative.test_delete _________________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s __________ ERROR at setup of TestDeclarative.test_translated_columns ___________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _ ERROR at setup of TestDeclarative.test_appends_locale_column_to_translation_table _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s __________ ERROR at setup of TestClassic.test_auto_creates_relations ___________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s __________ ERROR at setup of TestClassic.test_translatable_attributes __________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _________ ERROR at setup of TestClassic.test_relationship_consistency __________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ____________ ERROR at setup of TestClassic.test_property_delegators ____________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ______________ ERROR at setup of TestClassic.test_commit_session _______________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s __________________ ERROR at setup of TestClassic.test_delete ___________________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ____________ ERROR at setup of TestClassic.test_translated_columns _____________ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _ ERROR at setup of TestClassic.test_appends_locale_column_to_translation_table _ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s 293s self.create_tables() 293s self.create_models() 293s > self.create_mappers() 293s 293s tests/__init__.py:140: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ___ ERROR at setup of TestDeclarative.test_auto_creates_translation_objects ____ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > DeclarativeTestCase.setup_method(self, method) 293s 293s tests/test_translation_auto_creation.py:21: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:57: in setup_method 293s sa.orm.configure_mappers() 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _____ ERROR at setup of TestClassic.test_auto_creates_translation_objects ______ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > ClassicTestCase.setup_method(self, method) 293s 293s tests/test_translation_auto_creation.py:31: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:140: in setup_method 293s self.create_mappers() 293s tests/__init__.py:213: in create_mappers 293s sa.orm.mapper(self.Article, self.article) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 293s kw = {} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s _ ERROR at setup of TestDeclarative.test_auto_sets_nullables_as_empty_strings __ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'ExtendedArticle' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > DeclarativeTestCase.setup_method(self, method) 293s 293s tests/test_translation_auto_creation_with_non_nullables.py:26: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:57: in setup_method 293s sa.orm.configure_mappers() 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 293s mapper._adapt_inherited_property(key, prop, init) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 293s self._configure_property(key, prop, init=False, setparent=False) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 293s prop.instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 293s attributes.register_descriptor( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 293s descriptor = InstrumentedAttribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 293s self.dispatch._update(base[key].dispatch) 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s ___ ERROR at setup of TestClassic.test_auto_sets_nullables_as_empty_strings ____ 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s > ClassicTestCase.setup_method(self, method) 293s 293s tests/test_translation_auto_creation_with_non_nullables.py:75: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s tests/__init__.py:140: in setup_method 293s self.create_mappers() 293s tests/test_translation_auto_creation_with_non_nullables.py:135: in create_mappers 293s sa.orm.mapper(self.Article, self.article, 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s arg = (.Article'>, Table('...ription', UnicodeText(), table=
), Column('discriminator', Unicode(length=255), table=
), schema=None)) 293s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=
)} 293s 293s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 293s """Placeholder for the now-removed ``mapper()`` function. 293s 293s Classical mappings should be performed using the 293s :meth:`_orm.registry.map_imperatively` method. 293s 293s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 293s of using the ``mapper()`` function as a target for ORM event listeners, 293s which failed to be marked as deprecated in the 1.4 series. 293s 293s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 293s class as the target. 293s 293s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 293s symbol remains temporarily as a placeholder for the event listening 293s use case. 293s 293s """ 293s > raise InvalidRequestError( 293s "The 'sqlalchemy.orm.mapper()' function is removed as of " 293s "SQLAlchemy 2.0. Use the " 293s "'sqlalchemy.orm.registry.map_imperatively()` " 293s "method of the ``sqlalchemy.orm.registry`` class to perform " 293s "classical mapping." 293s ) 293s E sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method of the ``sqlalchemy.orm.registry`` class to perform classical mapping. 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 293s ____________ ERROR at setup of TestDeclarative.test_proxy_contains _____________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _ ERROR at setup of TestDeclarative.test_translation_mapping_attribute_getter __ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _ ERROR at setup of TestDeclarative.test_attribute_accessor_for_unknown_locale _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s __________ ERROR at setup of TestDeclarative.test_proxy_not_contains ___________ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s > return getattr(class_, '_translation_%s' % locale) 293s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 293s 293s sqlalchemy_i18n/comparators.py:13: AttributeError 293s 293s During handling of the above exception, another exception occurred: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s self.connection = self.engine.connect() 293s self.connection.query_count = 0 293s self.Model = declarative_base() 293s 293s self.create_models() 293s 293s if self.configure_mappers: 293s > sa.orm.configure_mappers() 293s 293s tests/__init__.py:57: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 293s _configure_registries(_all_registries(), cascade=True) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 293s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 293s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 293s fn(*args, **kw) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 293s fn(*arg, **kw) 293s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 293s RelationshipBuilder(self, cls)() 293s sqlalchemy_i18n/builders.py:228: in __call__ 293s self.assign_translations() 293s sqlalchemy_i18n/builders.py:186: in assign_translations 293s mapper.add_property('_translations', sa.orm.relationship( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 293s prop = self._configure_property( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 293s prop.post_instrument_class(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 293s self.strategy.init_class_attribute(mapper) 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 293s _register_attribute( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 293s desc = attributes.register_attribute_impl( 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 293s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 293s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 293s if hasattr(obj, "_slots_dispatch"): 293s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 293s return getattr(self.comparator, key) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s self = 293s locale = '_slots_dispatch' 293s 293s def __getattr__(self, locale): 293s class_ = self._parentmapper.class_ 293s try: 293s return getattr(class_, '_translation_%s' % locale) 293s except AttributeError: 293s > raise UnknownLocaleError(locale, class_) 293s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 293s 293s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 293s _________________ ERROR at setup of TestDeclarative.test_items _________________ 293s 293s self = 293s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 293s connection = None, _has_events = None, _allow_revalidate = True 293s _allow_autobegin = True 293s 293s def __init__( 293s self, 293s engine: Engine, 293s connection: Optional[PoolProxiedConnection] = None, 293s _has_events: Optional[bool] = None, 293s _allow_revalidate: bool = True, 293s _allow_autobegin: bool = True, 293s ): 293s """Construct a new Connection.""" 293s self.engine = engine 293s self.dialect = dialect = engine.dialect 293s 293s if connection is None: 293s try: 293s > self._dbapi_connection = engine.raw_connection() 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s 293s The above exception was the direct cause of the following exception: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s > self.connection = self.engine.connect() 293s 293s tests/__init__.py:50: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 293s return self._connection_cls(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 293s Connection._handle_dbapi_exception_noconnection( 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 293s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 293s self._dbapi_connection = engine.raw_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s E 293s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s _______________ ERROR at setup of TestDeclarative.test_iteritems _______________ 293s 293s self = 293s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 293s connection = None, _has_events = None, _allow_revalidate = True 293s _allow_autobegin = True 293s 293s def __init__( 293s self, 293s engine: Engine, 293s connection: Optional[PoolProxiedConnection] = None, 293s _has_events: Optional[bool] = None, 293s _allow_revalidate: bool = True, 293s _allow_autobegin: bool = True, 293s ): 293s """Construct a new Connection.""" 293s self.engine = engine 293s self.dialect = dialect = engine.dialect 293s 293s if connection is None: 293s try: 293s > self._dbapi_connection = engine.raw_connection() 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s 293s The above exception was the direct cause of the following exception: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s > self.connection = self.engine.connect() 293s 293s tests/__init__.py:50: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 293s return self._connection_cls(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 293s Connection._handle_dbapi_exception_noconnection( 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 293s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 293s self._dbapi_connection = engine.raw_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s E 293s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s _______________ ERROR at setup of TestDeclarative.test_set_item ________________ 293s 293s self = 293s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 293s connection = None, _has_events = None, _allow_revalidate = True 293s _allow_autobegin = True 293s 293s def __init__( 293s self, 293s engine: Engine, 293s connection: Optional[PoolProxiedConnection] = None, 293s _has_events: Optional[bool] = None, 293s _allow_revalidate: bool = True, 293s _allow_autobegin: bool = True, 293s ): 293s """Construct a new Connection.""" 293s self.engine = engine 293s self.dialect = dialect = engine.dialect 293s 293s if connection is None: 293s try: 293s > self._dbapi_connection = engine.raw_connection() 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s 293s The above exception was the direct cause of the following exception: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s > self.connection = self.engine.connect() 293s 293s tests/__init__.py:50: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 293s return self._connection_cls(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 293s Connection._handle_dbapi_exception_noconnection( 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 293s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 293s self._dbapi_connection = engine.raw_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s E 293s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s _________________ ERROR at setup of TestDeclarative.test_repr __________________ 293s 293s self = 293s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 293s connection = None, _has_events = None, _allow_revalidate = True 293s _allow_autobegin = True 293s 293s def __init__( 293s self, 293s engine: Engine, 293s connection: Optional[PoolProxiedConnection] = None, 293s _has_events: Optional[bool] = None, 293s _allow_revalidate: bool = True, 293s _allow_autobegin: bool = True, 293s ): 293s """Construct a new Connection.""" 293s self.engine = engine 293s self.dialect = dialect = engine.dialect 293s 293s if connection is None: 293s try: 293s > self._dbapi_connection = engine.raw_connection() 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s 293s The above exception was the direct cause of the following exception: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s > self.connection = self.engine.connect() 293s 293s tests/__init__.py:50: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 293s return self._connection_cls(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 293s Connection._handle_dbapi_exception_noconnection( 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 293s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 293s self._dbapi_connection = engine.raw_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s E 293s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s _________________ ERROR at setup of TestDeclarative.test_iter __________________ 293s 293s self = 293s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 293s connection = None, _has_events = None, _allow_revalidate = True 293s _allow_autobegin = True 293s 293s def __init__( 293s self, 293s engine: Engine, 293s connection: Optional[PoolProxiedConnection] = None, 293s _has_events: Optional[bool] = None, 293s _allow_revalidate: bool = True, 293s _allow_autobegin: bool = True, 293s ): 293s """Construct a new Connection.""" 293s self.engine = engine 293s self.dialect = dialect = engine.dialect 293s 293s if connection is None: 293s try: 293s > self._dbapi_connection = engine.raw_connection() 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s 293s The above exception was the direct cause of the following exception: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s > self.connection = self.engine.connect() 293s 293s tests/__init__.py:50: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 293s return self._connection_cls(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 293s Connection._handle_dbapi_exception_noconnection( 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 293s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 293s self._dbapi_connection = engine.raw_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s E 293s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s ________________ ERROR at setup of TestDeclarative.test_values _________________ 293s 293s self = 293s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 293s connection = None, _has_events = None, _allow_revalidate = True 293s _allow_autobegin = True 293s 293s def __init__( 293s self, 293s engine: Engine, 293s connection: Optional[PoolProxiedConnection] = None, 293s _has_events: Optional[bool] = None, 293s _allow_revalidate: bool = True, 293s _allow_autobegin: bool = True, 293s ): 293s """Construct a new Connection.""" 293s self.engine = engine 293s self.dialect = dialect = engine.dialect 293s 293s if connection is None: 293s try: 293s > self._dbapi_connection = engine.raw_connection() 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s 293s The above exception was the direct cause of the following exception: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.engine = create_engine(self.engine_uri) 293s # self.engine.echo = True 293s > self.connection = self.engine.connect() 293s 293s tests/__init__.py:50: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 293s return self._connection_cls(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 293s Connection._handle_dbapi_exception_noconnection( 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 293s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 293s self._dbapi_connection = engine.raw_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s E 293s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s ______________ ERROR at setup of TestClassic.test_proxy_contains _______________ 293s 293s self = 293s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 293s connection = None, _has_events = None, _allow_revalidate = True 293s _allow_autobegin = True 293s 293s def __init__( 293s self, 293s engine: Engine, 293s connection: Optional[PoolProxiedConnection] = None, 293s _has_events: Optional[bool] = None, 293s _allow_revalidate: bool = True, 293s _allow_autobegin: bool = True, 293s ): 293s """Construct a new Connection.""" 293s self.engine = engine 293s self.dialect = dialect = engine.dialect 293s 293s if connection is None: 293s try: 293s > self._dbapi_connection = engine.raw_connection() 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s 293s The above exception was the direct cause of the following exception: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s > self.connection = self.engine.connect() 293s 293s tests/__init__.py:135: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 293s return self._connection_cls(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 293s Connection._handle_dbapi_exception_noconnection( 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 293s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 293s self._dbapi_connection = engine.raw_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s E 293s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s ___ ERROR at setup of TestClassic.test_translation_mapping_attribute_getter ____ 293s 293s self = 293s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 293s connection = None, _has_events = None, _allow_revalidate = True 293s _allow_autobegin = True 293s 293s def __init__( 293s self, 293s engine: Engine, 293s connection: Optional[PoolProxiedConnection] = None, 293s _has_events: Optional[bool] = None, 293s _allow_revalidate: bool = True, 293s _allow_autobegin: bool = True, 293s ): 293s """Construct a new Connection.""" 293s self.engine = engine 293s self.dialect = dialect = engine.dialect 293s 293s if connection is None: 293s try: 293s > self._dbapi_connection = engine.raw_connection() 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s 293s The above exception was the direct cause of the following exception: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s > self.connection = self.engine.connect() 293s 293s tests/__init__.py:135: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 293s return self._connection_cls(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 293s Connection._handle_dbapi_exception_noconnection( 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 293s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 293s self._dbapi_connection = engine.raw_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s E 293s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s ___ ERROR at setup of TestClassic.test_attribute_accessor_for_unknown_locale ___ 293s 293s self = 293s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 293s connection = None, _has_events = None, _allow_revalidate = True 293s _allow_autobegin = True 293s 293s def __init__( 293s self, 293s engine: Engine, 293s connection: Optional[PoolProxiedConnection] = None, 293s _has_events: Optional[bool] = None, 293s _allow_revalidate: bool = True, 293s _allow_autobegin: bool = True, 293s ): 293s """Construct a new Connection.""" 293s self.engine = engine 293s self.dialect = dialect = engine.dialect 293s 293s if connection is None: 293s try: 293s > self._dbapi_connection = engine.raw_connection() 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s 293s The above exception was the direct cause of the following exception: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s > self.connection = self.engine.connect() 293s 293s tests/__init__.py:135: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 293s return self._connection_cls(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 293s Connection._handle_dbapi_exception_noconnection( 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 293s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 293s self._dbapi_connection = engine.raw_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s E 293s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s ____________ ERROR at setup of TestClassic.test_proxy_not_contains _____________ 293s 293s self = 293s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 293s connection = None, _has_events = None, _allow_revalidate = True 293s _allow_autobegin = True 293s 293s def __init__( 293s self, 293s engine: Engine, 293s connection: Optional[PoolProxiedConnection] = None, 293s _has_events: Optional[bool] = None, 293s _allow_revalidate: bool = True, 293s _allow_autobegin: bool = True, 293s ): 293s """Construct a new Connection.""" 293s self.engine = engine 293s self.dialect = dialect = engine.dialect 293s 293s if connection is None: 293s try: 293s > self._dbapi_connection = engine.raw_connection() 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s 293s The above exception was the direct cause of the following exception: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s > self.connection = self.engine.connect() 293s 293s tests/__init__.py:135: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 293s return self._connection_cls(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 293s Connection._handle_dbapi_exception_noconnection( 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 293s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 293s self._dbapi_connection = engine.raw_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s E 293s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s ___________________ ERROR at setup of TestClassic.test_items ___________________ 293s 293s self = 293s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 293s connection = None, _has_events = None, _allow_revalidate = True 293s _allow_autobegin = True 293s 293s def __init__( 293s self, 293s engine: Engine, 293s connection: Optional[PoolProxiedConnection] = None, 293s _has_events: Optional[bool] = None, 293s _allow_revalidate: bool = True, 293s _allow_autobegin: bool = True, 293s ): 293s """Construct a new Connection.""" 293s self.engine = engine 293s self.dialect = dialect = engine.dialect 293s 293s if connection is None: 293s try: 293s > self._dbapi_connection = engine.raw_connection() 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s 293s The above exception was the direct cause of the following exception: 293s 293s self = 293s method = > 293s 293s def setup_method(self, method): 293s self.metadata = sa.MetaData() 293s 293s self.engine = sa.create_engine(self.engine_uri) 293s # self.engine.echo = True 293s > self.connection = self.engine.connect() 293s 293s tests/__init__.py:135: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 293s return self._connection_cls(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 293s Connection._handle_dbapi_exception_noconnection( 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 293s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 293s self._dbapi_connection = engine.raw_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 293s 293s Using the *cursor_factory* parameter, a new default cursor factory will be 293s used by cursor(). 293s 293s Using *async*=True an asynchronous connection will be created. *async_* is 293s a valid alias (for Python versions where ``async`` is a keyword). 293s 293s Any other keyword parameter will be passed to the underlying client 293s library: the list of supported parameters depends on the library version. 293s 293s """ 293s kwasync = {} 293s if 'async' in kwargs: 293s kwasync['async'] = kwargs.pop('async') 293s if 'async_' in kwargs: 293s kwasync['async_'] = kwargs.pop('async_') 293s 293s dsn = _ext.make_dsn(dsn, **kwargs) 293s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 293s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 293s E 293s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 293s 293s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 293s _________________ ERROR at setup of TestClassic.test_iteritems _________________ 293s 293s self = 293s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 293s connection = None, _has_events = None, _allow_revalidate = True 293s _allow_autobegin = True 293s 293s def __init__( 293s self, 293s engine: Engine, 293s connection: Optional[PoolProxiedConnection] = None, 293s _has_events: Optional[bool] = None, 293s _allow_revalidate: bool = True, 293s _allow_autobegin: bool = True, 293s ): 293s """Construct a new Connection.""" 293s self.engine = engine 293s self.dialect = dialect = engine.dialect 293s 293s if connection is None: 293s try: 293s > self._dbapi_connection = engine.raw_connection() 293s 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 293s return self.pool.connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 293s return _ConnectionFairy._checkout(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 293s fairy = _ConnectionRecord.checkout(pool) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 293s rec = pool._do_get() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 293s return self._create_connection() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 293s return _ConnectionRecord(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 293s self.__connect() 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 293s with util.safe_reraise(): 293s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 293s raise exc_value.with_traceback(exc_tb) 293s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 293s self.dbapi_connection = connection = pool._invoke_creator(self) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 293s return dialect.connect(*cargs, **cparams) 293s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 293s return self.loaded_dbapi.connect(*cargs, **cparams) 293s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 293s 293s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 293s connection_factory = None, cursor_factory = None 293s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 293s kwasync = {} 293s 293s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 293s """ 293s Create a new database connection. 293s 293s The connection parameters can be specified as a string: 293s 293s conn = psycopg2.connect("dbname=test user=postgres password=secret") 293s 293s or using a set of keyword arguments: 293s 293s conn = psycopg2.connect(database="test", user="postgres", password="secret") 293s 293s Or as a mix of both. The basic connection parameters are: 293s 293s - *dbname*: the database name 293s - *database*: the database name (only as keyword argument) 293s - *user*: user name used to authenticate 293s - *password*: password used to authenticate 293s - *host*: database host address (defaults to UNIX socket if not provided) 293s - *port*: connection port number (defaults to 5432 if not provided) 293s 293s Using the *connection_factory* parameter a different class or connections 293s factory can be specified. It should be a callable object taking a dsn 293s argument. 294s 294s Using the *cursor_factory* parameter, a new default cursor factory will be 294s used by cursor(). 294s 294s Using *async*=True an asynchronous connection will be created. *async_* is 294s a valid alias (for Python versions where ``async`` is a keyword). 294s 294s Any other keyword parameter will be passed to the underlying client 294s library: the list of supported parameters depends on the library version. 294s 294s """ 294s kwasync = {} 294s if 'async' in kwargs: 294s kwasync['async'] = kwargs.pop('async') 294s if 'async_' in kwargs: 294s kwasync['async_'] = kwargs.pop('async_') 294s 294s dsn = _ext.make_dsn(dsn, **kwargs) 294s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 294s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 294s 294s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 294s 294s The above exception was the direct cause of the following exception: 294s 294s self = 294s method = > 294s 294s def setup_method(self, method): 294s self.metadata = sa.MetaData() 294s 294s self.engine = sa.create_engine(self.engine_uri) 294s # self.engine.echo = True 294s > self.connection = self.engine.connect() 294s 294s tests/__init__.py:135: 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 294s return self._connection_cls(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 294s Connection._handle_dbapi_exception_noconnection( 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 294s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 294s self._dbapi_connection = engine.raw_connection() 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 294s return self.pool.connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 294s return _ConnectionFairy._checkout(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 294s fairy = _ConnectionRecord.checkout(pool) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 294s rec = pool._do_get() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 294s return self._create_connection() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 294s return _ConnectionRecord(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 294s self.__connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 294s self.dbapi_connection = connection = pool._invoke_creator(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 294s return dialect.connect(*cargs, **cparams) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 294s return self.loaded_dbapi.connect(*cargs, **cparams) 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s 294s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 294s connection_factory = None, cursor_factory = None 294s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 294s kwasync = {} 294s 294s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 294s """ 294s Create a new database connection. 294s 294s The connection parameters can be specified as a string: 294s 294s conn = psycopg2.connect("dbname=test user=postgres password=secret") 294s 294s or using a set of keyword arguments: 294s 294s conn = psycopg2.connect(database="test", user="postgres", password="secret") 294s 294s Or as a mix of both. The basic connection parameters are: 294s 294s - *dbname*: the database name 294s - *database*: the database name (only as keyword argument) 294s - *user*: user name used to authenticate 294s - *password*: password used to authenticate 294s - *host*: database host address (defaults to UNIX socket if not provided) 294s - *port*: connection port number (defaults to 5432 if not provided) 294s 294s Using the *connection_factory* parameter a different class or connections 294s factory can be specified. It should be a callable object taking a dsn 294s argument. 294s 294s Using the *cursor_factory* parameter, a new default cursor factory will be 294s used by cursor(). 294s 294s Using *async*=True an asynchronous connection will be created. *async_* is 294s a valid alias (for Python versions where ``async`` is a keyword). 294s 294s Any other keyword parameter will be passed to the underlying client 294s library: the list of supported parameters depends on the library version. 294s 294s """ 294s kwasync = {} 294s if 'async' in kwargs: 294s kwasync['async'] = kwargs.pop('async') 294s if 'async_' in kwargs: 294s kwasync['async_'] = kwargs.pop('async_') 294s 294s dsn = _ext.make_dsn(dsn, **kwargs) 294s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 294s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 294s E 294s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 294s 294s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 294s _________________ ERROR at setup of TestClassic.test_set_item __________________ 294s 294s self = 294s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 294s connection = None, _has_events = None, _allow_revalidate = True 294s _allow_autobegin = True 294s 294s def __init__( 294s self, 294s engine: Engine, 294s connection: Optional[PoolProxiedConnection] = None, 294s _has_events: Optional[bool] = None, 294s _allow_revalidate: bool = True, 294s _allow_autobegin: bool = True, 294s ): 294s """Construct a new Connection.""" 294s self.engine = engine 294s self.dialect = dialect = engine.dialect 294s 294s if connection is None: 294s try: 294s > self._dbapi_connection = engine.raw_connection() 294s 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 294s return self.pool.connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 294s return _ConnectionFairy._checkout(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 294s fairy = _ConnectionRecord.checkout(pool) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 294s rec = pool._do_get() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 294s return self._create_connection() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 294s return _ConnectionRecord(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 294s self.__connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 294s self.dbapi_connection = connection = pool._invoke_creator(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 294s return dialect.connect(*cargs, **cparams) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 294s return self.loaded_dbapi.connect(*cargs, **cparams) 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s 294s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 294s connection_factory = None, cursor_factory = None 294s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 294s kwasync = {} 294s 294s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 294s """ 294s Create a new database connection. 294s 294s The connection parameters can be specified as a string: 294s 294s conn = psycopg2.connect("dbname=test user=postgres password=secret") 294s 294s or using a set of keyword arguments: 294s 294s conn = psycopg2.connect(database="test", user="postgres", password="secret") 294s 294s Or as a mix of both. The basic connection parameters are: 294s 294s - *dbname*: the database name 294s - *database*: the database name (only as keyword argument) 294s - *user*: user name used to authenticate 294s - *password*: password used to authenticate 294s - *host*: database host address (defaults to UNIX socket if not provided) 294s - *port*: connection port number (defaults to 5432 if not provided) 294s 294s Using the *connection_factory* parameter a different class or connections 294s factory can be specified. It should be a callable object taking a dsn 294s argument. 294s 294s Using the *cursor_factory* parameter, a new default cursor factory will be 294s used by cursor(). 294s 294s Using *async*=True an asynchronous connection will be created. *async_* is 294s a valid alias (for Python versions where ``async`` is a keyword). 294s 294s Any other keyword parameter will be passed to the underlying client 294s library: the list of supported parameters depends on the library version. 294s 294s """ 294s kwasync = {} 294s if 'async' in kwargs: 294s kwasync['async'] = kwargs.pop('async') 294s if 'async_' in kwargs: 294s kwasync['async_'] = kwargs.pop('async_') 294s 294s dsn = _ext.make_dsn(dsn, **kwargs) 294s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 294s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 294s 294s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 294s 294s The above exception was the direct cause of the following exception: 294s 294s self = 294s method = > 294s 294s def setup_method(self, method): 294s self.metadata = sa.MetaData() 294s 294s self.engine = sa.create_engine(self.engine_uri) 294s # self.engine.echo = True 294s > self.connection = self.engine.connect() 294s 294s tests/__init__.py:135: 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 294s return self._connection_cls(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 294s Connection._handle_dbapi_exception_noconnection( 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 294s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 294s self._dbapi_connection = engine.raw_connection() 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 294s return self.pool.connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 294s return _ConnectionFairy._checkout(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 294s fairy = _ConnectionRecord.checkout(pool) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 294s rec = pool._do_get() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 294s return self._create_connection() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 294s return _ConnectionRecord(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 294s self.__connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 294s self.dbapi_connection = connection = pool._invoke_creator(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 294s return dialect.connect(*cargs, **cparams) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 294s return self.loaded_dbapi.connect(*cargs, **cparams) 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s 294s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 294s connection_factory = None, cursor_factory = None 294s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 294s kwasync = {} 294s 294s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 294s """ 294s Create a new database connection. 294s 294s The connection parameters can be specified as a string: 294s 294s conn = psycopg2.connect("dbname=test user=postgres password=secret") 294s 294s or using a set of keyword arguments: 294s 294s conn = psycopg2.connect(database="test", user="postgres", password="secret") 294s 294s Or as a mix of both. The basic connection parameters are: 294s 294s - *dbname*: the database name 294s - *database*: the database name (only as keyword argument) 294s - *user*: user name used to authenticate 294s - *password*: password used to authenticate 294s - *host*: database host address (defaults to UNIX socket if not provided) 294s - *port*: connection port number (defaults to 5432 if not provided) 294s 294s Using the *connection_factory* parameter a different class or connections 294s factory can be specified. It should be a callable object taking a dsn 294s argument. 294s 294s Using the *cursor_factory* parameter, a new default cursor factory will be 294s used by cursor(). 294s 294s Using *async*=True an asynchronous connection will be created. *async_* is 294s a valid alias (for Python versions where ``async`` is a keyword). 294s 294s Any other keyword parameter will be passed to the underlying client 294s library: the list of supported parameters depends on the library version. 294s 294s """ 294s kwasync = {} 294s if 'async' in kwargs: 294s kwasync['async'] = kwargs.pop('async') 294s if 'async_' in kwargs: 294s kwasync['async_'] = kwargs.pop('async_') 294s 294s dsn = _ext.make_dsn(dsn, **kwargs) 294s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 294s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 294s E 294s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 294s 294s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 294s ___________________ ERROR at setup of TestClassic.test_repr ____________________ 294s 294s self = 294s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 294s connection = None, _has_events = None, _allow_revalidate = True 294s _allow_autobegin = True 294s 294s def __init__( 294s self, 294s engine: Engine, 294s connection: Optional[PoolProxiedConnection] = None, 294s _has_events: Optional[bool] = None, 294s _allow_revalidate: bool = True, 294s _allow_autobegin: bool = True, 294s ): 294s """Construct a new Connection.""" 294s self.engine = engine 294s self.dialect = dialect = engine.dialect 294s 294s if connection is None: 294s try: 294s > self._dbapi_connection = engine.raw_connection() 294s 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 294s return self.pool.connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 294s return _ConnectionFairy._checkout(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 294s fairy = _ConnectionRecord.checkout(pool) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 294s rec = pool._do_get() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 294s return self._create_connection() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 294s return _ConnectionRecord(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 294s self.__connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 294s self.dbapi_connection = connection = pool._invoke_creator(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 294s return dialect.connect(*cargs, **cparams) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 294s return self.loaded_dbapi.connect(*cargs, **cparams) 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s 294s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 294s connection_factory = None, cursor_factory = None 294s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 294s kwasync = {} 294s 294s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 294s """ 294s Create a new database connection. 294s 294s The connection parameters can be specified as a string: 294s 294s conn = psycopg2.connect("dbname=test user=postgres password=secret") 294s 294s or using a set of keyword arguments: 294s 294s conn = psycopg2.connect(database="test", user="postgres", password="secret") 294s 294s Or as a mix of both. The basic connection parameters are: 294s 294s - *dbname*: the database name 294s - *database*: the database name (only as keyword argument) 294s - *user*: user name used to authenticate 294s - *password*: password used to authenticate 294s - *host*: database host address (defaults to UNIX socket if not provided) 294s - *port*: connection port number (defaults to 5432 if not provided) 294s 294s Using the *connection_factory* parameter a different class or connections 294s factory can be specified. It should be a callable object taking a dsn 294s argument. 294s 294s Using the *cursor_factory* parameter, a new default cursor factory will be 294s used by cursor(). 294s 294s Using *async*=True an asynchronous connection will be created. *async_* is 294s a valid alias (for Python versions where ``async`` is a keyword). 294s 294s Any other keyword parameter will be passed to the underlying client 294s library: the list of supported parameters depends on the library version. 294s 294s """ 294s kwasync = {} 294s if 'async' in kwargs: 294s kwasync['async'] = kwargs.pop('async') 294s if 'async_' in kwargs: 294s kwasync['async_'] = kwargs.pop('async_') 294s 294s dsn = _ext.make_dsn(dsn, **kwargs) 294s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 294s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 294s 294s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 294s 294s The above exception was the direct cause of the following exception: 294s 294s self = 294s method = > 294s 294s def setup_method(self, method): 294s self.metadata = sa.MetaData() 294s 294s self.engine = sa.create_engine(self.engine_uri) 294s # self.engine.echo = True 294s > self.connection = self.engine.connect() 294s 294s tests/__init__.py:135: 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 294s return self._connection_cls(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 294s Connection._handle_dbapi_exception_noconnection( 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 294s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 294s self._dbapi_connection = engine.raw_connection() 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 294s return self.pool.connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 294s return _ConnectionFairy._checkout(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 294s fairy = _ConnectionRecord.checkout(pool) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 294s rec = pool._do_get() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 294s return self._create_connection() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 294s return _ConnectionRecord(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 294s self.__connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 294s self.dbapi_connection = connection = pool._invoke_creator(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 294s return dialect.connect(*cargs, **cparams) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 294s return self.loaded_dbapi.connect(*cargs, **cparams) 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s 294s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 294s connection_factory = None, cursor_factory = None 294s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 294s kwasync = {} 294s 294s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 294s """ 294s Create a new database connection. 294s 294s The connection parameters can be specified as a string: 294s 294s conn = psycopg2.connect("dbname=test user=postgres password=secret") 294s 294s or using a set of keyword arguments: 294s 294s conn = psycopg2.connect(database="test", user="postgres", password="secret") 294s 294s Or as a mix of both. The basic connection parameters are: 294s 294s - *dbname*: the database name 294s - *database*: the database name (only as keyword argument) 294s - *user*: user name used to authenticate 294s - *password*: password used to authenticate 294s - *host*: database host address (defaults to UNIX socket if not provided) 294s - *port*: connection port number (defaults to 5432 if not provided) 294s 294s Using the *connection_factory* parameter a different class or connections 294s factory can be specified. It should be a callable object taking a dsn 294s argument. 294s 294s Using the *cursor_factory* parameter, a new default cursor factory will be 294s used by cursor(). 294s 294s Using *async*=True an asynchronous connection will be created. *async_* is 294s a valid alias (for Python versions where ``async`` is a keyword). 294s 294s Any other keyword parameter will be passed to the underlying client 294s library: the list of supported parameters depends on the library version. 294s 294s """ 294s kwasync = {} 294s if 'async' in kwargs: 294s kwasync['async'] = kwargs.pop('async') 294s if 'async_' in kwargs: 294s kwasync['async_'] = kwargs.pop('async_') 294s 294s dsn = _ext.make_dsn(dsn, **kwargs) 294s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 294s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 294s E 294s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 294s 294s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 294s ___________________ ERROR at setup of TestClassic.test_iter ____________________ 294s 294s self = 294s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 294s connection = None, _has_events = None, _allow_revalidate = True 294s _allow_autobegin = True 294s 294s def __init__( 294s self, 294s engine: Engine, 294s connection: Optional[PoolProxiedConnection] = None, 294s _has_events: Optional[bool] = None, 294s _allow_revalidate: bool = True, 294s _allow_autobegin: bool = True, 294s ): 294s """Construct a new Connection.""" 294s self.engine = engine 294s self.dialect = dialect = engine.dialect 294s 294s if connection is None: 294s try: 294s > self._dbapi_connection = engine.raw_connection() 294s 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 294s return self.pool.connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 294s return _ConnectionFairy._checkout(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 294s fairy = _ConnectionRecord.checkout(pool) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 294s rec = pool._do_get() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 294s return self._create_connection() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 294s return _ConnectionRecord(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 294s self.__connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 294s self.dbapi_connection = connection = pool._invoke_creator(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 294s return dialect.connect(*cargs, **cparams) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 294s return self.loaded_dbapi.connect(*cargs, **cparams) 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s 294s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 294s connection_factory = None, cursor_factory = None 294s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 294s kwasync = {} 294s 294s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 294s """ 294s Create a new database connection. 294s 294s The connection parameters can be specified as a string: 294s 294s conn = psycopg2.connect("dbname=test user=postgres password=secret") 294s 294s or using a set of keyword arguments: 294s 294s conn = psycopg2.connect(database="test", user="postgres", password="secret") 294s 294s Or as a mix of both. The basic connection parameters are: 294s 294s - *dbname*: the database name 294s - *database*: the database name (only as keyword argument) 294s - *user*: user name used to authenticate 294s - *password*: password used to authenticate 294s - *host*: database host address (defaults to UNIX socket if not provided) 294s - *port*: connection port number (defaults to 5432 if not provided) 294s 294s Using the *connection_factory* parameter a different class or connections 294s factory can be specified. It should be a callable object taking a dsn 294s argument. 294s 294s Using the *cursor_factory* parameter, a new default cursor factory will be 294s used by cursor(). 294s 294s Using *async*=True an asynchronous connection will be created. *async_* is 294s a valid alias (for Python versions where ``async`` is a keyword). 294s 294s Any other keyword parameter will be passed to the underlying client 294s library: the list of supported parameters depends on the library version. 294s 294s """ 294s kwasync = {} 294s if 'async' in kwargs: 294s kwasync['async'] = kwargs.pop('async') 294s if 'async_' in kwargs: 294s kwasync['async_'] = kwargs.pop('async_') 294s 294s dsn = _ext.make_dsn(dsn, **kwargs) 294s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 294s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 294s 294s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 294s 294s The above exception was the direct cause of the following exception: 294s 294s self = 294s method = > 294s 294s def setup_method(self, method): 294s self.metadata = sa.MetaData() 294s 294s self.engine = sa.create_engine(self.engine_uri) 294s # self.engine.echo = True 294s > self.connection = self.engine.connect() 294s 294s tests/__init__.py:135: 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 294s return self._connection_cls(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 294s Connection._handle_dbapi_exception_noconnection( 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 294s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 294s self._dbapi_connection = engine.raw_connection() 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 294s return self.pool.connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 294s return _ConnectionFairy._checkout(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 294s fairy = _ConnectionRecord.checkout(pool) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 294s rec = pool._do_get() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 294s return self._create_connection() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 294s return _ConnectionRecord(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 294s self.__connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 294s self.dbapi_connection = connection = pool._invoke_creator(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 294s return dialect.connect(*cargs, **cparams) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 294s return self.loaded_dbapi.connect(*cargs, **cparams) 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s 294s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 294s connection_factory = None, cursor_factory = None 294s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 294s kwasync = {} 294s 294s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 294s """ 294s Create a new database connection. 294s 294s The connection parameters can be specified as a string: 294s 294s conn = psycopg2.connect("dbname=test user=postgres password=secret") 294s 294s or using a set of keyword arguments: 294s 294s conn = psycopg2.connect(database="test", user="postgres", password="secret") 294s 294s Or as a mix of both. The basic connection parameters are: 294s 294s - *dbname*: the database name 294s - *database*: the database name (only as keyword argument) 294s - *user*: user name used to authenticate 294s - *password*: password used to authenticate 294s - *host*: database host address (defaults to UNIX socket if not provided) 294s - *port*: connection port number (defaults to 5432 if not provided) 294s 294s Using the *connection_factory* parameter a different class or connections 294s factory can be specified. It should be a callable object taking a dsn 294s argument. 294s 294s Using the *cursor_factory* parameter, a new default cursor factory will be 294s used by cursor(). 294s 294s Using *async*=True an asynchronous connection will be created. *async_* is 294s a valid alias (for Python versions where ``async`` is a keyword). 294s 294s Any other keyword parameter will be passed to the underlying client 294s library: the list of supported parameters depends on the library version. 294s 294s """ 294s kwasync = {} 294s if 'async' in kwargs: 294s kwasync['async'] = kwargs.pop('async') 294s if 'async_' in kwargs: 294s kwasync['async_'] = kwargs.pop('async_') 294s 294s dsn = _ext.make_dsn(dsn, **kwargs) 294s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 294s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 294s E 294s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 294s 294s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 294s __________________ ERROR at setup of TestClassic.test_values ___________________ 294s 294s self = 294s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 294s connection = None, _has_events = None, _allow_revalidate = True 294s _allow_autobegin = True 294s 294s def __init__( 294s self, 294s engine: Engine, 294s connection: Optional[PoolProxiedConnection] = None, 294s _has_events: Optional[bool] = None, 294s _allow_revalidate: bool = True, 294s _allow_autobegin: bool = True, 294s ): 294s """Construct a new Connection.""" 294s self.engine = engine 294s self.dialect = dialect = engine.dialect 294s 294s if connection is None: 294s try: 294s > self._dbapi_connection = engine.raw_connection() 294s 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 294s return self.pool.connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 294s return _ConnectionFairy._checkout(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 294s fairy = _ConnectionRecord.checkout(pool) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 294s rec = pool._do_get() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 294s return self._create_connection() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 294s return _ConnectionRecord(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 294s self.__connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 294s self.dbapi_connection = connection = pool._invoke_creator(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 294s return dialect.connect(*cargs, **cparams) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 294s return self.loaded_dbapi.connect(*cargs, **cparams) 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s 294s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 294s connection_factory = None, cursor_factory = None 294s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 294s kwasync = {} 294s 294s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 294s """ 294s Create a new database connection. 294s 294s The connection parameters can be specified as a string: 294s 294s conn = psycopg2.connect("dbname=test user=postgres password=secret") 294s 294s or using a set of keyword arguments: 294s 294s conn = psycopg2.connect(database="test", user="postgres", password="secret") 294s 294s Or as a mix of both. The basic connection parameters are: 294s 294s - *dbname*: the database name 294s - *database*: the database name (only as keyword argument) 294s - *user*: user name used to authenticate 294s - *password*: password used to authenticate 294s - *host*: database host address (defaults to UNIX socket if not provided) 294s - *port*: connection port number (defaults to 5432 if not provided) 294s 294s Using the *connection_factory* parameter a different class or connections 294s factory can be specified. It should be a callable object taking a dsn 294s argument. 294s 294s Using the *cursor_factory* parameter, a new default cursor factory will be 294s used by cursor(). 294s 294s Using *async*=True an asynchronous connection will be created. *async_* is 294s a valid alias (for Python versions where ``async`` is a keyword). 294s 294s Any other keyword parameter will be passed to the underlying client 294s library: the list of supported parameters depends on the library version. 294s 294s """ 294s kwasync = {} 294s if 'async' in kwargs: 294s kwasync['async'] = kwargs.pop('async') 294s if 'async_' in kwargs: 294s kwasync['async_'] = kwargs.pop('async_') 294s 294s dsn = _ext.make_dsn(dsn, **kwargs) 294s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 294s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 294s 294s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 294s 294s The above exception was the direct cause of the following exception: 294s 294s self = 294s method = > 294s 294s def setup_method(self, method): 294s self.metadata = sa.MetaData() 294s 294s self.engine = sa.create_engine(self.engine_uri) 294s # self.engine.echo = True 294s > self.connection = self.engine.connect() 294s 294s tests/__init__.py:135: 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 294s return self._connection_cls(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 294s Connection._handle_dbapi_exception_noconnection( 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 294s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 294s self._dbapi_connection = engine.raw_connection() 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 294s return self.pool.connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 294s return _ConnectionFairy._checkout(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 294s fairy = _ConnectionRecord.checkout(pool) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 294s rec = pool._do_get() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 294s return self._create_connection() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 294s return _ConnectionRecord(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 294s self.__connect() 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 294s with util.safe_reraise(): 294s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 294s raise exc_value.with_traceback(exc_tb) 294s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 294s self.dbapi_connection = connection = pool._invoke_creator(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 294s return dialect.connect(*cargs, **cparams) 294s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 294s return self.loaded_dbapi.connect(*cargs, **cparams) 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s 294s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 294s connection_factory = None, cursor_factory = None 294s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 294s kwasync = {} 294s 294s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 294s """ 294s Create a new database connection. 294s 294s The connection parameters can be specified as a string: 294s 294s conn = psycopg2.connect("dbname=test user=postgres password=secret") 294s 294s or using a set of keyword arguments: 294s 294s conn = psycopg2.connect(database="test", user="postgres", password="secret") 294s 294s Or as a mix of both. The basic connection parameters are: 294s 294s - *dbname*: the database name 294s - *database*: the database name (only as keyword argument) 294s - *user*: user name used to authenticate 294s - *password*: password used to authenticate 294s - *host*: database host address (defaults to UNIX socket if not provided) 294s - *port*: connection port number (defaults to 5432 if not provided) 294s 294s Using the *connection_factory* parameter a different class or connections 294s factory can be specified. It should be a callable object taking a dsn 294s argument. 294s 294s Using the *cursor_factory* parameter, a new default cursor factory will be 294s used by cursor(). 294s 294s Using *async*=True an asynchronous connection will be created. *async_* is 294s a valid alias (for Python versions where ``async`` is a keyword). 294s 294s Any other keyword parameter will be passed to the underlying client 294s library: the list of supported parameters depends on the library version. 294s 294s """ 294s kwasync = {} 294s if 'async' in kwargs: 294s kwasync['async'] = kwargs.pop('async') 294s if 'async_' in kwargs: 294s kwasync['async_'] = kwargs.pop('async_') 294s 294s dsn = _ext.make_dsn(dsn, **kwargs) 294s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 294s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 56057 failed: FATAL: sorry, too many clients already 294s E 294s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 294s 294s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 294s =================================== FAILURES =================================== 294s ___________ TestDeclarative.test_does_not_generate_hybrid_properties ___________ 294s 294s self = 294s locale = '_slots_dispatch' 294s 294s def __getattr__(self, locale): 294s class_ = self._parentmapper.class_ 294s try: 294s > return getattr(class_, '_translation_%s' % locale) 294s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 294s 294s sqlalchemy_i18n/comparators.py:13: AttributeError 294s 294s During handling of the above exception, another exception occurred: 294s 294s self = 294s 294s def test_does_not_generate_hybrid_properties(self): 294s > self.Article() 294s 294s tests/test_hybrid_property_exclusion.py:15: 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s :4: in __init__ 294s ??? 294s /usr/lib/python3/dist-packages/sqlalchemy/orm/state.py:566: in _initialize_instance 294s manager.dispatch.init(self, args, kwargs) 294s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:497: in __call__ 294s fn(*args, **kw) 294s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4396: in _event_on_init 294s instrumenting_mapper._check_configure() 294s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2388: in _check_configure 294s _configure_registries({self.registry}, cascade=True) 294s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 294s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 294s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 294s fn(*args, **kw) 294s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 294s fn(*arg, **kw) 294s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 294s RelationshipBuilder(self, cls)() 294s sqlalchemy_i18n/builders.py:228: in __call__ 294s self.assign_translations() 294s sqlalchemy_i18n/builders.py:186: in assign_translations 294s mapper.add_property('_translations', sa.orm.relationship( 294s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 294s prop = self._configure_property( 294s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 294s prop.post_instrument_class(self) 294s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 294s self.strategy.init_class_attribute(mapper) 294s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 294s _register_attribute( 294s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 294s desc = attributes.register_attribute_impl( 294s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 294s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 294s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 294s if hasattr(obj, "_slots_dispatch"): 294s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 294s return getattr(self.comparator, key) 294s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 294s 294s self = 294s locale = '_slots_dispatch' 294s 294s def __getattr__(self, locale): 294s class_ = self._parentmapper.class_ 294s try: 294s return getattr(class_, '_translation_%s' % locale) 294s except AttributeError: 294s > raise UnknownLocaleError(locale, class_) 294s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 294s 294s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 294s =============================== warnings summary =============================== 294s sqlalchemy_i18n/translatable.py:62 294s /tmp/autopkgtest.rCEPxO/build.9c4/src/sqlalchemy_i18n/translatable.py:62: SADeprecationWarning: The `sqlalchemy.orm.mapper()` symbol is deprecated and will be removed in a future release. For the mapper-wide event target, use the 'sqlalchemy.orm.Mapper' class. 294s @sa.event.listens_for(sa.orm.mapper, 'expire') 294s 294s sqlalchemy_i18n/__init__.py:41 294s /tmp/autopkgtest.rCEPxO/build.9c4/src/sqlalchemy_i18n/__init__.py:41: SADeprecationWarning: The `sqlalchemy.orm.mapper()` symbol is deprecated and will be removed in a future release. For the mapper-wide event target, use the 'sqlalchemy.orm.Mapper' class. 294s sa.event.listen( 294s 294s sqlalchemy_i18n/__init__.py:44 294s /tmp/autopkgtest.rCEPxO/build.9c4/src/sqlalchemy_i18n/__init__.py:44: SADeprecationWarning: The `sqlalchemy.orm.mapper()` symbol is deprecated and will be removed in a future release. For the mapper-wide event target, use the 'sqlalchemy.orm.Mapper' class. 294s sa.event.listen( 294s 294s tests/test_common_base_class.py: 1 warning 294s tests/test_comparator.py: 2 warnings 294s tests/test_composite_primary_key.py: 1 warning 294s tests/test_configuration.py: 2 warnings 294s tests/test_current_translation_property.py: 3 warnings 294s tests/test_current_translation_property_with_locale.py: 1 warning 294s tests/test_custom_base_class.py: 1 warning 294s tests/test_fallback_locale_as_callable.py: 2 warnings 294s tests/test_fallback_locale_without_class_default.py: 2 warnings 294s tests/test_fallback_translation.py: 3 warnings 294s tests/test_find_translations.py: 2 warnings 294s tests/test_hybrid_property_as_dynamic_source_locale.py: 1 warning 294s tests/test_hybrid_property_exclusion.py: 1 warning 294s tests/test_join_expressions.py: 4 warnings 294s tests/test_joined_loading.py: 5 warnings 294s tests/test_joined_table_inheritance.py: 8 warnings 294s tests/test_property_collision.py: 1 warning 294s tests/test_relationships.py: 1 warning 294s tests/test_translatable.py: 8 warnings 294s tests/test_translation_auto_creation.py: 1 warning 294s tests/test_translation_auto_creation_with_non_nullables.py: 1 warning 294s tests/test_translation_mapping.py: 4 warnings 294s /tmp/autopkgtest.rCEPxO/build.9c4/src/tests/__init__.py:52: MovedIn20Warning: The ``declarative_base()`` function is now available as sqlalchemy.orm.declarative_base(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) 294s self.Model = declarative_base() 294s 294s tests/test_common_base_class.py: 2 warnings 294s tests/test_comparator.py: 2 warnings 294s tests/test_composite_primary_key.py: 1 warning 294s tests/test_configuration.py: 2 warnings 294s tests/test_current_translation_property.py: 3 warnings 294s tests/test_current_translation_property_with_locale.py: 1 warning 294s tests/test_custom_base_class.py: 1 warning 294s tests/test_fallback_locale_as_callable.py: 2 warnings 294s tests/test_fallback_locale_without_class_default.py: 2 warnings 294s tests/test_fallback_translation.py: 3 warnings 294s tests/test_find_translations.py: 2 warnings 294s tests/test_hybrid_property_as_dynamic_source_locale.py: 1 warning 294s tests/test_hybrid_property_exclusion.py: 1 warning 294s tests/test_join_expressions.py: 4 warnings 294s tests/test_joined_loading.py: 5 warnings 294s tests/test_joined_table_inheritance.py: 8 warnings 294s tests/test_property_collision.py: 1 warning 294s tests/test_relationships.py: 1 warning 294s tests/test_translatable.py: 8 warnings 294s tests/test_translation_auto_creation.py: 1 warning 294s tests/test_translation_auto_creation_with_non_nullables.py: 1 warning 294s tests/test_translation_mapping.py: 4 warnings 294s /tmp/autopkgtest.rCEPxO/build.9c4/src/sqlalchemy_i18n/manager.py:36: MovedIn20Warning: The ``has_inherited_table()`` function is now available as sqlalchemy.orm.has_inherited_table(). (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) 294s if has_inherited_table(cls): 294s 294s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 294s =========================== short test summary info ============================ 294s FAILED tests/test_hybrid_property_exclusion.py::TestDeclarative::test_does_not_generate_hybrid_properties 294s ERROR tests/test_common_base_class.py::TestDeclarative::test_translatable_dict_copied_to_each_child_class 294s ERROR tests/test_common_base_class.py::TestClassic::test_translatable_dict_copied_to_each_child_class 294s ERROR tests/test_comparator.py::TestDeclarative::test_attribute_accessor_for_unknown_locale 294s ERROR tests/test_comparator.py::TestDeclarative::test_attribute_accessors - s... 294s ERROR tests/test_comparator.py::TestClassic::test_attribute_accessor_for_unknown_locale 294s ERROR tests/test_comparator.py::TestClassic::test_attribute_accessors - sqlal... 294s ERROR tests/test_composite_primary_key.py::TestDeclarative::test_relationships 294s ERROR tests/test_composite_primary_key.py::TestClassic::test_relationships - ... 294s ERROR tests/test_configuration.py::TestTranslationBaseCustomization::test_customize_foreign_key_args 294s ERROR tests/test_configuration.py::TestTranslationBaseCustomization::test_customize_relationships_args 294s ERROR tests/test_current_translation_property.py::TestDeclarative::test_as_object_property 294s ERROR tests/test_current_translation_property.py::TestDeclarative::test_as_class_property 294s ERROR tests/test_current_translation_property.py::TestDeclarative::test_setter 294s ERROR tests/test_current_translation_property.py::TestClassic::test_as_object_property 294s ERROR tests/test_current_translation_property.py::TestClassic::test_as_class_property 294s ERROR tests/test_current_translation_property.py::TestClassic::test_setter - ... 294s ERROR tests/test_current_translation_property_with_locale.py::TestDeclarative::test_converts_locale_object_to_unicode 294s ERROR tests/test_current_translation_property_with_locale.py::TestClassic::test_converts_locale_object_to_unicode 294s ERROR tests/test_custom_base_class.py::TestDeclarative::test_translatable_dict_copied_to_each_child_class 294s ERROR tests/test_fallback_locale_as_callable.py::TestDeclarative::test_hybrid_properties_support_callable_fallback_locales 294s ERROR tests/test_fallback_locale_as_callable.py::TestDeclarative::test_locale_fallback 294s ERROR tests/test_fallback_locale_as_callable.py::TestClassic::test_hybrid_properties_support_callable_fallback_locales 294s ERROR tests/test_fallback_locale_as_callable.py::TestClassic::test_locale_fallback 294s ERROR tests/test_fallback_locale_without_class_default.py::TestDeclarative::test_hybrid_properties_support_callable_fallback_locales 294s ERROR tests/test_fallback_locale_without_class_default.py::TestDeclarative::test_locale_fallback 294s ERROR tests/test_fallback_locale_without_class_default.py::TestClassic::test_hybrid_properties_support_callable_fallback_locales 294s ERROR tests/test_fallback_locale_without_class_default.py::TestClassic::test_locale_fallback 294s ERROR tests/test_fallback_translation.py::TestDeclarative::test_as_object_property_with_force_locale 294s ERROR tests/test_fallback_translation.py::TestDeclarative::test_as_class_property 294s ERROR tests/test_fallback_translation.py::TestDeclarative::test_setter - sqla... 294s ERROR tests/test_fallback_translation.py::TestClassic::test_as_object_property_with_force_locale 294s ERROR tests/test_fallback_translation.py::TestClassic::test_as_class_property 294s ERROR tests/test_fallback_translation.py::TestClassic::test_setter - sqlalche... 294s ERROR tests/test_find_translations.py::TestDeclarative::test_with_full_confidence 294s ERROR tests/test_find_translations.py::TestDeclarative::test_with_varying_confidence 294s ERROR tests/test_find_translations.py::TestClassic::test_with_full_confidence 294s ERROR tests/test_find_translations.py::TestClassic::test_with_varying_confidence 294s ERROR tests/test_hybrid_property_as_dynamic_source_locale.py::TestDeclarative::test_joinedload_for_current_translation 294s ERROR tests/test_hybrid_property_as_dynamic_source_locale.py::TestClassic::test_joinedload_for_current_translation 294s ERROR tests/test_hybrid_property_exclusion.py::TestClassic::test_does_not_generate_hybrid_properties 294s ERROR tests/test_join_expressions.py::TestDeclarative::test_current_translation_as_expression 294s ERROR tests/test_join_expressions.py::TestDeclarative::test_order_by_translation 294s ERROR tests/test_join_expressions.py::TestDeclarative::test_fallback_locale_as_expression 294s ERROR tests/test_join_expressions.py::TestDeclarative::test_querying - sqlalc... 294s ERROR tests/test_join_expressions.py::TestClassic::test_current_translation_as_expression 294s ERROR tests/test_join_expressions.py::TestClassic::test_order_by_translation 294s ERROR tests/test_join_expressions.py::TestClassic::test_fallback_locale_as_expression 294s ERROR tests/test_join_expressions.py::TestClassic::test_querying - sqlalchemy... 294s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_current_translation 294s ERROR tests/test_joined_loading.py::TestDeclarative::test_contains_eager_for_current_translation 294s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_single_translation 294s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_attr_accessor 294s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_all_translations 294s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_current_translation 294s ERROR tests/test_joined_loading.py::TestClassic::test_contains_eager_for_current_translation 294s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_single_translation 294s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_attr_accessor 294s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_all_translations 294s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_auto_creates_relations 294s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_auto_creates_current_translation 294s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_translatable_attributes 294s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_inherits_child_properties 294s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_translated_columns 294s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_property_delegators 294s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_table_name 294s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_inherits_parent_table 294s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_auto_creates_relations 294s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_auto_creates_current_translation 294s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_translatable_attributes 294s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_inherits_child_properties 294s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_translated_columns 294s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_property_delegators 294s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_table_name - ... 294s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_inherits_parent_table 294s ERROR tests/test_relationships.py::TestDeclarative::test_nullify_relation - s... 294s ERROR tests/test_relationships.py::TestClassic::test_nullify_relation - sqlal... 294s ERROR tests/test_translatable.py::TestDeclarative::test_auto_creates_relations 294s ERROR tests/test_translatable.py::TestDeclarative::test_translatable_attributes 294s ERROR tests/test_translatable.py::TestDeclarative::test_relationship_consistency 294s ERROR tests/test_translatable.py::TestDeclarative::test_property_delegators 294s ERROR tests/test_translatable.py::TestDeclarative::test_commit_session - sqla... 294s ERROR tests/test_translatable.py::TestDeclarative::test_delete - sqlalchemy_i... 294s ERROR tests/test_translatable.py::TestDeclarative::test_translated_columns - ... 294s ERROR tests/test_translatable.py::TestDeclarative::test_appends_locale_column_to_translation_table 294s ERROR tests/test_translatable.py::TestClassic::test_auto_creates_relations - ... 294s ERROR tests/test_translatable.py::TestClassic::test_translatable_attributes 294s ERROR tests/test_translatable.py::TestClassic::test_relationship_consistency 294s ERROR tests/test_translatable.py::TestClassic::test_property_delegators - sql... 294s ERROR tests/test_translatable.py::TestClassic::test_commit_session - sqlalche... 294s ERROR tests/test_translatable.py::TestClassic::test_delete - sqlalchemy.exc.I... 294s ERROR tests/test_translatable.py::TestClassic::test_translated_columns - sqla... 294s ERROR tests/test_translatable.py::TestClassic::test_appends_locale_column_to_translation_table 294s ERROR tests/test_translation_auto_creation.py::TestDeclarative::test_auto_creates_translation_objects 294s ERROR tests/test_translation_auto_creation.py::TestClassic::test_auto_creates_translation_objects 294s ERROR tests/test_translation_auto_creation_with_non_nullables.py::TestDeclarative::test_auto_sets_nullables_as_empty_strings 294s ERROR tests/test_translation_auto_creation_with_non_nullables.py::TestClassic::test_auto_sets_nullables_as_empty_strings 294s ERROR tests/test_translation_mapping.py::TestDeclarative::test_proxy_contains 294s ERROR tests/test_translation_mapping.py::TestDeclarative::test_translation_mapping_attribute_getter 294s ERROR tests/test_translation_mapping.py::TestDeclarative::test_attribute_accessor_for_unknown_locale 294s ERROR tests/test_translation_mapping.py::TestDeclarative::test_proxy_not_contains 294s ERROR tests/test_translation_mapping.py::TestDeclarative::test_items - sqlalc... 294s ERROR tests/test_translation_mapping.py::TestDeclarative::test_iteritems - sq... 294s ERROR tests/test_translation_mapping.py::TestDeclarative::test_set_item - sql... 294s ERROR tests/test_translation_mapping.py::TestDeclarative::test_repr - sqlalch... 294s ERROR tests/test_translation_mapping.py::TestDeclarative::test_iter - sqlalch... 294s ERROR tests/test_translation_mapping.py::TestDeclarative::test_values - sqlal... 294s ERROR tests/test_translation_mapping.py::TestClassic::test_proxy_contains - s... 294s ERROR tests/test_translation_mapping.py::TestClassic::test_translation_mapping_attribute_getter 294s ERROR tests/test_translation_mapping.py::TestClassic::test_attribute_accessor_for_unknown_locale 294s ERROR tests/test_translation_mapping.py::TestClassic::test_proxy_not_contains 294s ERROR tests/test_translation_mapping.py::TestClassic::test_items - sqlalchemy... 294s ERROR tests/test_translation_mapping.py::TestClassic::test_iteritems - sqlalc... 294s ERROR tests/test_translation_mapping.py::TestClassic::test_set_item - sqlalch... 294s ERROR tests/test_translation_mapping.py::TestClassic::test_repr - sqlalchemy.... 294s ERROR tests/test_translation_mapping.py::TestClassic::test_iter - sqlalchemy.... 294s ERROR tests/test_translation_mapping.py::TestClassic::test_values - sqlalchem... 294s ============ 1 failed, 2 passed, 114 warnings, 116 errors in 23.12s ============ 294s stopping server2024-11-14 06:16:39.676 UTC [3237] LOG: received smart shutdown request 298s 2024-11-14 06:16:44.685 UTC [3346] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.685 UTC [3345] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.685 UTC [3344] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.685 UTC [3317] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.685 UTC [3340] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.685 UTC [3334] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.685 UTC [3335] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.685 UTC [3341] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.685 UTC [3343] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.686 UTC [3324] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.688 UTC [3339] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.688 UTC [3328] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.688 UTC [3342] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.688 UTC [3337] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.688 UTC [3310] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.689 UTC [3333] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.689 UTC [3319] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.690 UTC [3336] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.691 UTC [3338] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.691 UTC [3316] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.691 UTC [3306] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.691 UTC [3331] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.691 UTC [3330] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.691 UTC [3304] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.692 UTC [3308] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.692 UTC [3321] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.693 UTC [3325] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.693 UTC [3313] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.693 UTC [3332] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.694 UTC [3302] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.694 UTC [3311] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.694 UTC [3326] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.694 UTC [3322] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.694 UTC [3305] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.695 UTC [3299] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.696 UTC [3323] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.696 UTC [3315] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.696 UTC [3300] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.696 UTC [3329] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.697 UTC [3309] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.697 UTC [3297] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.697 UTC [3298] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.697 UTC [3301] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.698 UTC [3293] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.698 UTC [3294] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.698 UTC [3318] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.698 UTC [3286] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.699 UTC [3280] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.699 UTC [3327] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.699 UTC [3275] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.700 UTC [3288] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.700 UTC [3307] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.700 UTC [3314] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.700 UTC [3292] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.701 UTC [3287] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.701 UTC [3291] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.702 UTC [3282] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.702 UTC [3273] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.702 UTC [3312] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.703 UTC [3290] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.703 UTC [3289] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.703 UTC [3285] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.703 UTC [3261] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.704 UTC [3281] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.704 UTC [3283] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.704 UTC [3278] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.705 UTC [3257] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.705 UTC [3269] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.705 UTC [3266] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.705 UTC [3303] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.707 UTC [3279] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.707 UTC [3277] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.707 UTC [3274] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.707 UTC [3262] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.707 UTC [3258] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.707 UTC [3251] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.708 UTC [3296] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.708 UTC [3256] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.709 UTC [3295] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.709 UTC [3270] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.709 UTC [3276] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.710 UTC [3271] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.710 UTC [3250] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.711 UTC [3268] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.711 UTC [3246] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.711 UTC [3267] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.712 UTC [3272] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.712 UTC [3263] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.714 UTC [3259] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.715 UTC [3265] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.715 UTC [3264] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.716 UTC [3255] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.717 UTC [3253] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.717 UTC [3252] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.717 UTC [3249] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.718 UTC [3247] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.718 UTC [3260] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.720 UTC [3248] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.721 UTC [3254] FATAL: terminating connection due to unexpected postmaster exit 298s 2024-11-14 06:16:44.722 UTC [3245] FATAL: terminating connection due to unexpected postmaster exit 298s 298s clean up 299s autopkgtest [06:16:45]: test setup-db-and-run-tests.py: -----------------------] 303s autopkgtest [06:16:49]: test setup-db-and-run-tests.py: - - - - - - - - - - results - - - - - - - - - - 303s setup-db-and-run-tests.py PASS 307s autopkgtest [06:16:53]: @@@@@@@@@@@@@@@@@@@@ summary 307s setup-db-and-run-tests.py PASS