0s autopkgtest [18:13:01]: starting date and time: 2024-11-14 18:13:01+0000 0s autopkgtest [18:13:01]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [18:13:01]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.9saqt4nf/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:sqlalchemy --apt-upgrade sqlalchemy-i18n --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=sqlalchemy/2.0.32+ds1-1ubuntu3 -- lxd -r lxd-armhf-10.145.243.197 lxd-armhf-10.145.243.197:autopkgtest/ubuntu/plucky/armhf 53s autopkgtest [18:13:54]: testbed dpkg architecture: armhf 54s autopkgtest [18:13:55]: testbed apt version: 2.9.8 54s autopkgtest [18:13:55]: @@@@@@@@@@@@@@@@@@@@ test bed setup 62s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 63s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [933 kB] 63s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [14.0 kB] 63s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [103 kB] 63s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 63s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [105 kB] 63s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [663 kB] 63s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf Packages [3564 B] 63s Fetched 1903 kB in 1s (2215 kB/s) 63s Reading package lists... 81s tee: /proc/self/fd/2: Permission denied 102s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 102s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 102s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 102s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 104s Reading package lists... 104s Reading package lists... 104s Building dependency tree... 104s Reading state information... 105s Calculating upgrade... 105s The following packages will be upgraded: 105s libcap-ng0 pastebinit python3-systemd 105s 3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 105s Need to get 72.8 kB of archives. 105s After this operation, 89.1 kB of additional disk space will be used. 105s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf libcap-ng0 armhf 0.8.5-3build1 [13.8 kB] 105s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf pastebinit all 1.7.1-1 [14.9 kB] 105s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf python3-systemd armhf 235-1build5 [44.0 kB] 106s Fetched 72.8 kB in 0s (202 kB/s) 106s (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.) 106s Preparing to unpack .../libcap-ng0_0.8.5-3build1_armhf.deb ... 106s Unpacking libcap-ng0:armhf (0.8.5-3build1) over (0.8.5-1) ... 106s Setting up libcap-ng0:armhf (0.8.5-3build1) ... 106s (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.) 106s Preparing to unpack .../pastebinit_1.7.1-1_all.deb ... 106s Unpacking pastebinit (1.7.1-1) over (1.7.0-1) ... 106s Preparing to unpack .../python3-systemd_235-1build5_armhf.deb ... 106s Unpacking python3-systemd (235-1build5) over (235-1build4) ... 106s Setting up pastebinit (1.7.1-1) ... 106s Setting up python3-systemd (235-1build5) ... 106s Processing triggers for man-db (2.12.1-3) ... 107s Processing triggers for libc-bin (2.40-1ubuntu3) ... 107s Reading package lists... 108s Building dependency tree... 108s Reading state information... 108s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 110s autopkgtest [18:14:51]: rebooting testbed after setup commands that affected boot 178s autopkgtest [18:15:59]: 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 205s autopkgtest [18:16:26]: @@@@@@@@@@@@@@@@@@@@ apt-source sqlalchemy-i18n 215s Get:1 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (dsc) [2462 B] 215s Get:2 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (tar) [28.2 kB] 215s Get:3 http://ftpmaster.internal/ubuntu plucky/universe sqlalchemy-i18n 1.1.0-1build1 (diff) [4212 B] 216s gpgv: Signature made Wed Jan 18 23:54:36 2023 UTC 216s gpgv: using RSA key 439884E6862A429C290DF63B033C4CA276024834 216s gpgv: issuer "athos.ribeiro@canonical.com" 216s gpgv: Can't check signature: No public key 216s dpkg-source: warning: cannot verify inline signature for ./sqlalchemy-i18n_1.1.0-1build1.dsc: no acceptable signature found 216s autopkgtest [18:16:37]: testing package sqlalchemy-i18n version 1.1.0-1build1 218s autopkgtest [18:16:39]: build not needed 220s autopkgtest [18:16:41]: test setup-db-and-run-tests.py: preparing testbed 230s Reading package lists... 230s Building dependency tree... 230s Reading state information... 230s Starting pkgProblemResolver with broken count: 0 231s Starting 2 pkgProblemResolver with broken count: 0 231s Done 231s The following additional packages will be installed: 231s libjs-jquery libjs-sphinxdoc libjs-underscore libjson-perl libllvm19 libpq5 231s libxslt1.1 postgresql postgresql-16 postgresql-client-16 231s postgresql-client-common postgresql-common python3-arrow python3-dateutil 231s python3-greenlet python3-iniconfig python3-packaging python3-pluggy 231s python3-psycopg2 python3-pytest python3-six python3-sqlalchemy 231s python3-sqlalchemy-i18n python3-sqlalchemy-utils ssl-cert 231s Suggested packages: 231s postgresql-doc postgresql-doc-16 python-arrow-doc python-greenlet-dev 231s python-greenlet-doc python-psycopg2-doc python-sqlalchemy-doc 231s python3-asyncpg python3-pg8000 python3-psycopg2cffi python3-aiosqlite 231s python3-mariadb-connector python3-mysqldb python3-mysql.connector 231s python3-pyodbc python3-pymssql python3-cx-oracle python3-oracledb 231s python-sqlalchemy-utils-doc python3-infinity python3-intervals 231s Recommended packages: 231s javascript-common libjson-xs-perl python3-sqlalchemy-ext 231s The following NEW packages will be installed: 231s autopkgtest-satdep libjs-jquery libjs-sphinxdoc libjs-underscore 231s libjson-perl libllvm19 libpq5 libxslt1.1 postgresql postgresql-16 231s postgresql-client-16 postgresql-client-common postgresql-common 231s python3-arrow python3-dateutil python3-greenlet python3-iniconfig 231s python3-packaging python3-pluggy python3-psycopg2 python3-pytest python3-six 231s python3-sqlalchemy python3-sqlalchemy-i18n python3-sqlalchemy-utils ssl-cert 231s 0 upgraded, 26 newly installed, 0 to remove and 0 not upgraded. 231s Need to get 46.5 MB/46.5 MB of archives. 231s After this operation, 175 MB of additional disk space will be used. 231s Get:1 /tmp/autopkgtest.Wdtz8L/1-autopkgtest-satdep.deb autopkgtest-satdep armhf 0 [744 B] 232s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf libjson-perl all 4.10000-1 [81.9 kB] 232s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf postgresql-client-common all 262 [36.7 kB] 232s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf ssl-cert all 1.1.2ubuntu2 [18.0 kB] 232s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf postgresql-common all 262 [162 kB] 232s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 232s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 232s Get:8 http://ftpmaster.internal/ubuntu plucky/main armhf libjs-sphinxdoc all 7.4.7-4 [158 kB] 232s Get:9 http://ftpmaster.internal/ubuntu plucky/main armhf libllvm19 armhf 1:19.1.2-1ubuntu1 [27.8 MB] 233s Get:10 http://ftpmaster.internal/ubuntu plucky/main armhf libpq5 armhf 17.0-1 [231 kB] 233s Get:11 http://ftpmaster.internal/ubuntu plucky/main armhf libxslt1.1 armhf 1.1.39-0exp1ubuntu1 [150 kB] 233s Get:12 http://ftpmaster.internal/ubuntu plucky/main armhf postgresql-client-16 armhf 16.4-3 [1236 kB] 233s 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-proposed/main armhf python3-sqlalchemy all 2.0.32+ds1-1ubuntu3 [1206 kB] 234s Get:25 http://ftpmaster.internal/ubuntu plucky/main armhf python3-sqlalchemy-utils all 0.41.1-0ubuntu1 [59.4 kB] 234s Get:26 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-sqlalchemy-i18n all 1.1.0-1build1 [26.7 kB] 234s Preconfiguring packages ... 234s Fetched 46.5 MB in 2s (22.3 MB/s) 234s 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 ... 59565 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) ... 236s Selecting previously unselected package postgresql. 236s Preparing to unpack .../12-postgresql_16+262_all.deb ... 236s Unpacking postgresql (16+262) ... 236s Selecting previously unselected package python3-six. 236s Preparing to unpack .../13-python3-six_1.16.0-7_all.deb ... 236s Unpacking python3-six (1.16.0-7) ... 236s Selecting previously unselected package python3-dateutil. 236s Preparing to unpack .../14-python3-dateutil_2.9.0-2_all.deb ... 236s Unpacking python3-dateutil (2.9.0-2) ... 236s Selecting previously unselected package python3-arrow. 236s Preparing to unpack .../15-python3-arrow_1.3.0-1.1ubuntu1_all.deb ... 236s Unpacking python3-arrow (1.3.0-1.1ubuntu1) ... 236s Selecting previously unselected package python3-iniconfig. 236s Preparing to unpack .../16-python3-iniconfig_1.1.1-2_all.deb ... 236s Unpacking python3-iniconfig (1.1.1-2) ... 236s Selecting previously unselected package python3-packaging. 236s Preparing to unpack .../17-python3-packaging_24.1-1_all.deb ... 236s Unpacking python3-packaging (24.1-1) ... 236s Selecting previously unselected package python3-pluggy. 236s Preparing to unpack .../18-python3-pluggy_1.5.0-1_all.deb ... 236s Unpacking python3-pluggy (1.5.0-1) ... 236s Selecting previously unselected package python3-psycopg2. 236s Preparing to unpack .../19-python3-psycopg2_2.9.9-2_armhf.deb ... 236s Unpacking python3-psycopg2 (2.9.9-2) ... 236s 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-1ubuntu3_all.deb ... 236s Unpacking python3-sqlalchemy (2.0.32+ds1-1ubuntu3) ... 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) ... 237s Setting up libllvm19:armhf (1:19.1.2-1ubuntu1) ... 237s Setting up libpq5:armhf (17.0-1) ... 237s Setting up python3-six (1.16.0-7) ... 237s Setting up python3-packaging (24.1-1) ... 237s Setting up ssl-cert (1.1.2ubuntu2) ... 238s 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) ... 239s Setting up python3-psycopg2 (2.9.9-2) ... 239s Setting up python3-pluggy (1.5.0-1) ... 239s Setting up libjson-perl (4.10000-1) ... 239s Setting up libxslt1.1:armhf (1.1.39-0exp1ubuntu1) ... 239s Setting up python3-dateutil (2.9.0-2) ... 239s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 239s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 239s Setting up python3-arrow (1.3.0-1.1ubuntu1) ... 239s Setting up python3-pytest (8.3.3-1) ... 240s Setting up postgresql-client-16 (16.4-3) ... 241s 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 241s Setting up python3-sqlalchemy (2.0.32+ds1-1ubuntu3) ... 242s Setting up postgresql-common (262) ... 243s 243s Creating config file /etc/postgresql-common/createcluster.conf with new version 243s Building PostgreSQL dictionaries from installed myspell/hunspell packages... 243s Removing obsolete dictionary files: 244s Created symlink '/etc/systemd/system/multi-user.target.wants/postgresql.service' → '/usr/lib/systemd/system/postgresql.service'. 244s Setting up libjs-sphinxdoc (7.4.7-4) ... 244s Setting up python3-sqlalchemy-utils (0.41.1-0ubuntu1) ... 244s Setting up python3-sqlalchemy-i18n (1.1.0-1build1) ... 244s Setting up postgresql-16 (16.4-3) ... 245s Creating new PostgreSQL cluster 16/main ... 245s /usr/lib/postgresql/16/bin/initdb -D /var/lib/postgresql/16/main --auth-local peer --auth-host scram-sha-256 --no-instructions 245s The files belonging to this database system will be owned by user "postgres". 245s This user must also own the server process. 245s 245s The database cluster will be initialized with locale "C.UTF-8". 245s The default database encoding has accordingly been set to "UTF8". 245s The default text search configuration will be set to "english". 245s 245s Data page checksums are disabled. 245s 245s fixing permissions on existing directory /var/lib/postgresql/16/main ... ok 245s creating subdirectories ... ok 245s selecting dynamic shared memory implementation ... posix 245s selecting default max_connections ... 100 245s selecting default shared_buffers ... 128MB 245s selecting default time zone ... Etc/UTC 245s creating configuration files ... ok 245s running bootstrap script ... ok 246s performing post-bootstrap initialization ... ok 246s syncing data to disk ... ok 250s Setting up postgresql (16+262) ... 250s Setting up autopkgtest-satdep (0) ... 250s Processing triggers for man-db (2.12.1-3) ... 251s Processing triggers for libc-bin (2.40-1ubuntu3) ... 263s (Reading database ... 62355 files and directories currently installed.) 263s Removing autopkgtest-satdep (0) ... 269s autopkgtest [18:17:30]: test setup-db-and-run-tests.py: [----------------------- 271s The files belonging to this database system will be owned by user "ubuntu". 271s This user must also own the server process. 271s 271s The database cluster will be initialized with this locale configuration: 271s provider: libc 271s LC_COLLATE: C.UTF-8 271s LC_CTYPE: C.UTF-8 271s LC_MESSAGES: C 271s LC_MONETARY: C.UTF-8 271s LC_NUMERIC: C.UTF-8 271s LC_TIME: C.UTF-8 271s The default database encoding has accordingly been set to "UTF8". 271s The default text search configuration will be set to "english". 271s 271s Data page checksums are disabled. 271s 271s creating directory /tmp/tmpnwx24872/data ... ok 271s creating subdirectories ... ok 271s selecting dynamic shared memory implementation ... posix 271s selecting default max_connections ... 100 271s selecting default shared_buffers ... 128MB 271s selecting default time zone ... Etc/UTC 271s creating configuration files ... ok 271s running bootstrap script ... ok 272s performing post-bootstrap initialization ... ok 273s syncing data to disk ... ok 273s 273s Success. You can now start the database server using: 273s 273s /usr/lib/postgresql/16/bin/pg_ctl -D /tmp/tmpnwx24872/data -l logfile start 273s 273s 2024-11-14 18:17:34.416 UTC [3218] 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 273s 2024-11-14 18:17:34.416 UTC [3218] LOG: listening on IPv4 address "127.0.0.1", port 34947 273s 2024-11-14 18:17:34.416 UTC [3218] LOG: listening on Unix socket "/tmp/tmpnwx24872/tmp/.s.PGSQL.34947" 273s 2024-11-14 18:17:34.419 UTC [3221] LOG: database system was shut down at 2024-11-14 18:17:33 UTC 273s 2024-11-14 18:17:34.424 UTC [3218] LOG: database system is ready to accept connections 274s running initdb 274s starting server 274s ============================= test session starts ============================== 274s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 274s rootdir: /tmp/autopkgtest.Wdtz8L/build.5WL/src 274s plugins: typeguard-4.4.1 274s collected 119 items 274s 274s tests/test_common_base_class.py EE [ 1%] 275s tests/test_comparator.py EEEE [ 5%] 275s tests/test_composite_primary_key.py EE [ 6%] 276s tests/test_configuration.py EE [ 8%] 277s tests/test_current_translation_property.py EEEEEE [ 13%] 278s tests/test_current_translation_property_with_locale.py EE [ 15%] 278s tests/test_custom_base_class.py E [ 15%] 278s tests/test_expressions.py . [ 16%] 279s tests/test_fallback_locale_as_callable.py EEEE [ 20%] 280s tests/test_fallback_locale_without_class_default.py EEEE [ 23%] 281s tests/test_fallback_translation.py EEEEEE [ 28%] 282s tests/test_find_translations.py EEEE [ 31%] 282s tests/test_hybrid_property_as_dynamic_source_locale.py EE [ 33%] 283s tests/test_hybrid_property_exclusion.py FE [ 35%] 285s tests/test_join_expressions.py EEEEEEEE [ 42%] 287s tests/test_joined_loading.py EEEEEEEEEE [ 50%] 290s tests/test_joined_table_inheritance.py EEEEEEEEEEEEEEEE [ 63%] 290s tests/test_property_collision.py . [ 64%] 290s tests/test_relationships.py EE [ 66%] 293s tests/test_translatable.py EEEEEEEEEEEEEEEE [ 79%] 293s tests/test_translation_auto_creation.py EE [ 81%] 294s tests/test_translation_auto_creation_with_non_nullables.py EE [ 83%] 295s tests/test_translation_mapping.py EEEE2024-11-14 18:17:56.736 UTC [3328] FATAL: sorry, too many clients already 296s E2024-11-14 18:17:57.107 UTC [3329] FATAL: sorry, too many clients already 296s E2024-11-14 18:17:57.483 UTC [3330] FATAL: sorry, too many clients already 296s E2024-11-14 18:17:57.851 UTC [3331] FATAL: sorry, too many clients already 297s E2024-11-14 18:17:58.223 UTC [3332] FATAL: sorry, too many clients already 297s E2024-11-14 18:17:58.589 UTC [3333] FATAL: sorry, too many clients already 297s E2024-11-14 18:17:58.955 UTC [3334] FATAL: sorry, too many clients already 298s E2024-11-14 18:17:59.334 UTC [3335] FATAL: sorry, too many clients already 298s E2024-11-14 18:17:59.701 UTC [3336] FATAL: sorry, too many clients already 299s E2024-11-14 18:18:00.079 UTC [3337] FATAL: sorry, too many clients already 299s E2024-11-14 18:18:00.450 UTC [3338] FATAL: sorry, too many clients already 299s E2024-11-14 18:18:00.938 UTC [3339] FATAL: sorry, too many clients already 300s E2024-11-14 18:18:01.307 UTC [3340] FATAL: sorry, too many clients already 300s E2024-11-14 18:18:01.677 UTC [3341] FATAL: sorry, too many clients already 301s E2024-11-14 18:18:02.062 UTC [3342] FATAL: sorry, too many clients already 301s E2024-11-14 18:18:02.431 UTC [3343] FATAL: sorry, too many clients already 301s E [100%] 301s 301s ==================================== ERRORS ==================================== 301s _ ERROR at setup of TestDeclarative.test_translatable_dict_copied_to_each_child_class _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'TextItem' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s _ ERROR at setup of TestClassic.test_translatable_dict_copied_to_each_child_class _ 301s 301s self = 301s 301s def create_mappers(self): 301s > sa.orm.mapper(self.TextItem, self.textitems) 301s 301s tests/test_common_base_class.py:105: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s arg = (.TextItem'>, Table('textitems', MetaData(), Column('id', Integer(), table=, primary_key=True, nullable=False), schema=None)) 301s kw = {} 301s 301s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 301s """Placeholder for the now-removed ``mapper()`` function. 301s 301s Classical mappings should be performed using the 301s :meth:`_orm.registry.map_imperatively` method. 301s 301s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 301s of using the ``mapper()`` function as a target for ORM event listeners, 301s which failed to be marked as deprecated in the 1.4 series. 301s 301s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 301s class as the target. 301s 301s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 301s symbol remains temporarily as a placeholder for the event listening 301s use case. 301s 301s """ 301s > raise InvalidRequestError( 301s "The 'sqlalchemy.orm.mapper()' function is removed as of " 301s "SQLAlchemy 2.0. Use the " 301s "'sqlalchemy.orm.registry.map_imperatively()` " 301s "method of the ``sqlalchemy.orm.registry`` class to perform " 301s "classical mapping." 301s ) 301s 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. 301s 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 301s _ ERROR at setup of TestDeclarative.test_attribute_accessor_for_unknown_locale _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s __________ ERROR at setup of TestDeclarative.test_attribute_accessors __________ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s ___ ERROR at setup of TestClassic.test_attribute_accessor_for_unknown_locale ___ 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.metadata = sa.MetaData() 301s 301s self.engine = sa.create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s 301s self.create_tables() 301s self.create_models() 301s > self.create_mappers() 301s 301s tests/__init__.py:140: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s tests/__init__.py:213: in create_mappers 301s sa.orm.mapper(self.Article, self.article) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 301s kw = {} 301s 301s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 301s """Placeholder for the now-removed ``mapper()`` function. 301s 301s Classical mappings should be performed using the 301s :meth:`_orm.registry.map_imperatively` method. 301s 301s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 301s of using the ``mapper()`` function as a target for ORM event listeners, 301s which failed to be marked as deprecated in the 1.4 series. 301s 301s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 301s class as the target. 301s 301s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 301s symbol remains temporarily as a placeholder for the event listening 301s use case. 301s 301s """ 301s > raise InvalidRequestError( 301s "The 'sqlalchemy.orm.mapper()' function is removed as of " 301s "SQLAlchemy 2.0. Use the " 301s "'sqlalchemy.orm.registry.map_imperatively()` " 301s "method of the ``sqlalchemy.orm.registry`` class to perform " 301s "classical mapping." 301s ) 301s 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. 301s 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 301s ____________ ERROR at setup of TestClassic.test_attribute_accessors ____________ 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.metadata = sa.MetaData() 301s 301s self.engine = sa.create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s 301s self.create_tables() 301s self.create_models() 301s > self.create_mappers() 301s 301s tests/__init__.py:140: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s tests/__init__.py:213: in create_mappers 301s sa.orm.mapper(self.Article, self.article) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 301s kw = {} 301s 301s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 301s """Placeholder for the now-removed ``mapper()`` function. 301s 301s Classical mappings should be performed using the 301s :meth:`_orm.registry.map_imperatively` method. 301s 301s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 301s of using the ``mapper()`` function as a target for ORM event listeners, 301s which failed to be marked as deprecated in the 1.4 series. 301s 301s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 301s class as the target. 301s 301s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 301s symbol remains temporarily as a placeholder for the event listening 301s use case. 301s 301s """ 301s > raise InvalidRequestError( 301s "The 'sqlalchemy.orm.mapper()' function is removed as of " 301s "SQLAlchemy 2.0. Use the " 301s "'sqlalchemy.orm.registry.map_imperatively()` " 301s "method of the ``sqlalchemy.orm.registry`` class to perform " 301s "classical mapping." 301s ) 301s 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. 301s 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 301s _____________ ERROR at setup of TestDeclarative.test_relationships _____________ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s _______________ ERROR at setup of TestClassic.test_relationships _______________ 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.metadata = sa.MetaData() 301s 301s self.engine = sa.create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s 301s self.create_tables() 301s self.create_models() 301s > self.create_mappers() 301s 301s tests/__init__.py:140: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s tests/__init__.py:213: in create_mappers 301s sa.orm.mapper(self.Article, self.article) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s arg = (.Article'>, Table('article', MetaData(), C...y_key=True, nullable=False), Column('id2', Integer(), table=
, primary_key=True, nullable=False), schema=None)) 301s kw = {} 301s 301s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 301s """Placeholder for the now-removed ``mapper()`` function. 301s 301s Classical mappings should be performed using the 301s :meth:`_orm.registry.map_imperatively` method. 301s 301s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 301s of using the ``mapper()`` function as a target for ORM event listeners, 301s which failed to be marked as deprecated in the 1.4 series. 301s 301s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 301s class as the target. 301s 301s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 301s symbol remains temporarily as a placeholder for the event listening 301s use case. 301s 301s """ 301s > raise InvalidRequestError( 301s "The 'sqlalchemy.orm.mapper()' function is removed as of " 301s "SQLAlchemy 2.0. Use the " 301s "'sqlalchemy.orm.registry.map_imperatively()` " 301s "method of the ``sqlalchemy.orm.registry`` class to perform " 301s "classical mapping." 301s ) 301s 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. 301s 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 301s _ ERROR at setup of TestTranslationBaseCustomization.test_customize_foreign_key_args _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s _ ERROR at setup of TestTranslationBaseCustomization.test_customize_relationships_args _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s __________ ERROR at setup of TestDeclarative.test_as_object_property ___________ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['fi', 'en'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s ___________ ERROR at setup of TestDeclarative.test_as_class_property ___________ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s ________________ ERROR at setup of TestDeclarative.test_setter _________________ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s ____________ ERROR at setup of TestClassic.test_as_object_property _____________ 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.metadata = sa.MetaData() 301s 301s self.engine = sa.create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s 301s self.create_tables() 301s self.create_models() 301s > self.create_mappers() 301s 301s tests/__init__.py:140: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s tests/__init__.py:213: in create_mappers 301s sa.orm.mapper(self.Article, self.article) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 301s kw = {} 301s 301s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 301s """Placeholder for the now-removed ``mapper()`` function. 301s 301s Classical mappings should be performed using the 301s :meth:`_orm.registry.map_imperatively` method. 301s 301s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 301s of using the ``mapper()`` function as a target for ORM event listeners, 301s which failed to be marked as deprecated in the 1.4 series. 301s 301s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 301s class as the target. 301s 301s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 301s symbol remains temporarily as a placeholder for the event listening 301s use case. 301s 301s """ 301s > raise InvalidRequestError( 301s "The 'sqlalchemy.orm.mapper()' function is removed as of " 301s "SQLAlchemy 2.0. Use the " 301s "'sqlalchemy.orm.registry.map_imperatively()` " 301s "method of the ``sqlalchemy.orm.registry`` class to perform " 301s "classical mapping." 301s ) 301s 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. 301s 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 301s _____________ ERROR at setup of TestClassic.test_as_class_property _____________ 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.metadata = sa.MetaData() 301s 301s self.engine = sa.create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s 301s self.create_tables() 301s self.create_models() 301s > self.create_mappers() 301s 301s tests/__init__.py:140: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s tests/__init__.py:213: in create_mappers 301s sa.orm.mapper(self.Article, self.article) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 301s kw = {} 301s 301s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 301s """Placeholder for the now-removed ``mapper()`` function. 301s 301s Classical mappings should be performed using the 301s :meth:`_orm.registry.map_imperatively` method. 301s 301s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 301s of using the ``mapper()`` function as a target for ORM event listeners, 301s which failed to be marked as deprecated in the 1.4 series. 301s 301s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 301s class as the target. 301s 301s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 301s symbol remains temporarily as a placeholder for the event listening 301s use case. 301s 301s """ 301s > raise InvalidRequestError( 301s "The 'sqlalchemy.orm.mapper()' function is removed as of " 301s "SQLAlchemy 2.0. Use the " 301s "'sqlalchemy.orm.registry.map_imperatively()` " 301s "method of the ``sqlalchemy.orm.registry`` class to perform " 301s "classical mapping." 301s ) 301s 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. 301s 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 301s __________________ ERROR at setup of TestClassic.test_setter ___________________ 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.metadata = sa.MetaData() 301s 301s self.engine = sa.create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s 301s self.create_tables() 301s self.create_models() 301s > self.create_mappers() 301s 301s tests/__init__.py:140: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s tests/__init__.py:213: in create_mappers 301s sa.orm.mapper(self.Article, self.article) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 301s kw = {} 301s 301s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 301s """Placeholder for the now-removed ``mapper()`` function. 301s 301s Classical mappings should be performed using the 301s :meth:`_orm.registry.map_imperatively` method. 301s 301s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 301s of using the ``mapper()`` function as a target for ORM event listeners, 301s which failed to be marked as deprecated in the 1.4 series. 301s 301s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 301s class as the target. 301s 301s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 301s symbol remains temporarily as a placeholder for the event listening 301s use case. 301s 301s """ 301s > raise InvalidRequestError( 301s "The 'sqlalchemy.orm.mapper()' function is removed as of " 301s "SQLAlchemy 2.0. Use the " 301s "'sqlalchemy.orm.registry.map_imperatively()` " 301s "method of the ``sqlalchemy.orm.registry`` class to perform " 301s "classical mapping." 301s ) 301s 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. 301s 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 301s ___ ERROR at setup of TestDeclarative.test_converts_locale_object_to_unicode ___ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s _____ ERROR at setup of TestClassic.test_converts_locale_object_to_unicode _____ 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.metadata = sa.MetaData() 301s 301s self.engine = sa.create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s 301s self.create_tables() 301s self.create_models() 301s > self.create_mappers() 301s 301s tests/__init__.py:140: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s tests/__init__.py:213: in create_mappers 301s sa.orm.mapper(self.Article, self.article) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s arg = (.Article'>, Table('arti...able=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 301s kw = {} 301s 301s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 301s """Placeholder for the now-removed ``mapper()`` function. 301s 301s Classical mappings should be performed using the 301s :meth:`_orm.registry.map_imperatively` method. 301s 301s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 301s of using the ``mapper()`` function as a target for ORM event listeners, 301s which failed to be marked as deprecated in the 1.4 series. 301s 301s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 301s class as the target. 301s 301s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 301s symbol remains temporarily as a placeholder for the event listening 301s use case. 301s 301s """ 301s > raise InvalidRequestError( 301s "The 'sqlalchemy.orm.mapper()' function is removed as of " 301s "SQLAlchemy 2.0. Use the " 301s "'sqlalchemy.orm.registry.map_imperatively()` " 301s "method of the ``sqlalchemy.orm.registry`` class to perform " 301s "classical mapping." 301s ) 301s 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. 301s 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 301s _ ERROR at setup of TestDeclarative.test_translatable_dict_copied_to_each_child_class _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s _ ERROR at setup of TestDeclarative.test_hybrid_properties_support_callable_fallback_locales _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s ____________ ERROR at setup of TestDeclarative.test_locale_fallback ____________ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s _ ERROR at setup of TestClassic.test_hybrid_properties_support_callable_fallback_locales _ 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.metadata = sa.MetaData() 301s 301s self.engine = sa.create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s 301s self.create_tables() 301s self.create_models() 301s > self.create_mappers() 301s 301s tests/__init__.py:140: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s tests/__init__.py:213: in create_mappers 301s sa.orm.mapper(self.Article, self.article) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s arg = (.Article'>, Table('article', MetaDat...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 301s kw = {} 301s 301s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 301s """Placeholder for the now-removed ``mapper()`` function. 301s 301s Classical mappings should be performed using the 301s :meth:`_orm.registry.map_imperatively` method. 301s 301s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 301s of using the ``mapper()`` function as a target for ORM event listeners, 301s which failed to be marked as deprecated in the 1.4 series. 301s 301s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 301s class as the target. 301s 301s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 301s symbol remains temporarily as a placeholder for the event listening 301s use case. 301s 301s """ 301s > raise InvalidRequestError( 301s "The 'sqlalchemy.orm.mapper()' function is removed as of " 301s "SQLAlchemy 2.0. Use the " 301s "'sqlalchemy.orm.registry.map_imperatively()` " 301s "method of the ``sqlalchemy.orm.registry`` class to perform " 301s "classical mapping." 301s ) 301s 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. 301s 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 301s ______________ ERROR at setup of TestClassic.test_locale_fallback ______________ 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.metadata = sa.MetaData() 301s 301s self.engine = sa.create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s 301s self.create_tables() 301s self.create_models() 301s > self.create_mappers() 301s 301s tests/__init__.py:140: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s tests/__init__.py:213: in create_mappers 301s sa.orm.mapper(self.Article, self.article) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s arg = (.Article'>, Table('article', MetaDat...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 301s kw = {} 301s 301s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 301s """Placeholder for the now-removed ``mapper()`` function. 301s 301s Classical mappings should be performed using the 301s :meth:`_orm.registry.map_imperatively` method. 301s 301s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 301s of using the ``mapper()`` function as a target for ORM event listeners, 301s which failed to be marked as deprecated in the 1.4 series. 301s 301s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 301s class as the target. 301s 301s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 301s symbol remains temporarily as a placeholder for the event listening 301s use case. 301s 301s """ 301s > raise InvalidRequestError( 301s "The 'sqlalchemy.orm.mapper()' function is removed as of " 301s "SQLAlchemy 2.0. Use the " 301s "'sqlalchemy.orm.registry.map_imperatively()` " 301s "method of the ``sqlalchemy.orm.registry`` class to perform " 301s "classical mapping." 301s ) 301s 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. 301s 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 301s _ ERROR at setup of TestDeclarative.test_hybrid_properties_support_callable_fallback_locales _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s ____________ ERROR at setup of TestDeclarative.test_locale_fallback ____________ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 301s 301s During handling of the above exception, another exception occurred: 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.engine = create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s self.Model = declarative_base() 301s 301s self.create_models() 301s 301s if self.configure_mappers: 301s > sa.orm.configure_mappers() 301s 301s tests/__init__.py:57: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 301s _configure_registries(_all_registries(), cascade=True) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 301s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 301s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 301s fn(*args, **kw) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 301s fn(*arg, **kw) 301s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 301s RelationshipBuilder(self, cls)() 301s sqlalchemy_i18n/builders.py:228: in __call__ 301s self.assign_translations() 301s sqlalchemy_i18n/builders.py:186: in assign_translations 301s mapper.add_property('_translations', sa.orm.relationship( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 301s prop = self._configure_property( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 301s prop.post_instrument_class(self) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 301s self.strategy.init_class_attribute(mapper) 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 301s _register_attribute( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 301s desc = attributes.register_attribute_impl( 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 301s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 301s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 301s if hasattr(obj, "_slots_dispatch"): 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 301s return getattr(self.comparator, key) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s return getattr(class_, '_translation_%s' % locale) 301s except AttributeError: 301s > raise UnknownLocaleError(locale, class_) 301s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 301s 301s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 301s _ ERROR at setup of TestClassic.test_hybrid_properties_support_callable_fallback_locales _ 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.metadata = sa.MetaData() 301s 301s self.engine = sa.create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s 301s self.create_tables() 301s self.create_models() 301s > self.create_mappers() 301s 301s tests/__init__.py:140: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s tests/__init__.py:213: in create_mappers 301s sa.orm.mapper(self.Article, self.article) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s arg = (.Article'>, Table('article...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 301s kw = {} 301s 301s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 301s """Placeholder for the now-removed ``mapper()`` function. 301s 301s Classical mappings should be performed using the 301s :meth:`_orm.registry.map_imperatively` method. 301s 301s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 301s of using the ``mapper()`` function as a target for ORM event listeners, 301s which failed to be marked as deprecated in the 1.4 series. 301s 301s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 301s class as the target. 301s 301s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 301s symbol remains temporarily as a placeholder for the event listening 301s use case. 301s 301s """ 301s > raise InvalidRequestError( 301s "The 'sqlalchemy.orm.mapper()' function is removed as of " 301s "SQLAlchemy 2.0. Use the " 301s "'sqlalchemy.orm.registry.map_imperatively()` " 301s "method of the ``sqlalchemy.orm.registry`` class to perform " 301s "classical mapping." 301s ) 301s 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. 301s 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 301s ______________ ERROR at setup of TestClassic.test_locale_fallback ______________ 301s 301s self = 301s method = > 301s 301s def setup_method(self, method): 301s self.metadata = sa.MetaData() 301s 301s self.engine = sa.create_engine(self.engine_uri) 301s # self.engine.echo = True 301s self.connection = self.engine.connect() 301s self.connection.query_count = 0 301s 301s self.create_tables() 301s self.create_models() 301s > self.create_mappers() 301s 301s tests/__init__.py:140: 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s tests/__init__.py:213: in create_mappers 301s sa.orm.mapper(self.Article, self.article) 301s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 301s 301s arg = (.Article'>, Table('article...able=False), Column('locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 301s kw = {} 301s 301s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 301s """Placeholder for the now-removed ``mapper()`` function. 301s 301s Classical mappings should be performed using the 301s :meth:`_orm.registry.map_imperatively` method. 301s 301s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 301s of using the ``mapper()`` function as a target for ORM event listeners, 301s which failed to be marked as deprecated in the 1.4 series. 301s 301s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 301s class as the target. 301s 301s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 301s symbol remains temporarily as a placeholder for the event listening 301s use case. 301s 301s """ 301s > raise InvalidRequestError( 301s "The 'sqlalchemy.orm.mapper()' function is removed as of " 301s "SQLAlchemy 2.0. Use the " 301s "'sqlalchemy.orm.registry.map_imperatively()` " 301s "method of the ``sqlalchemy.orm.registry`` class to perform " 301s "classical mapping." 301s ) 301s 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. 301s 301s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 301s _ ERROR at setup of TestDeclarative.test_as_object_property_with_force_locale __ 301s 301s self = 301s locale = '_slots_dispatch' 301s 301s def __getattr__(self, locale): 301s class_ = self._parentmapper.class_ 301s try: 301s > return getattr(class_, '_translation_%s' % locale) 301s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 301s 301s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ___________ ERROR at setup of TestDeclarative.test_as_class_property ___________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ________________ ERROR at setup of TestDeclarative.test_setter _________________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ___ ERROR at setup of TestClassic.test_as_object_property_with_force_locale ____ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s _____________ ERROR at setup of TestClassic.test_as_class_property _____________ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s __________________ ERROR at setup of TestClassic.test_setter ___________________ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s _________ ERROR at setup of TestDeclarative.test_with_full_confidence __________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ________ ERROR at setup of TestDeclarative.test_with_varying_confidence ________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi', 'sv'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ___________ ERROR at setup of TestClassic.test_with_full_confidence ____________ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s __________ ERROR at setup of TestClassic.test_with_varying_confidence __________ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s __ ERROR at setup of TestDeclarative.test_joinedload_for_current_translation ___ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > DeclarativeTestCase.setup_method(self, method) 302s 302s tests/test_hybrid_property_as_dynamic_source_locale.py:25: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:57: in setup_method 302s sa.orm.configure_mappers() 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi', 'sv'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ____ ERROR at setup of TestClassic.test_joinedload_for_current_translation _____ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > ClassicTestCase.setup_method(self, method) 302s 302s tests/test_hybrid_property_as_dynamic_source_locale.py:61: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:140: in setup_method 302s self.create_mappers() 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('arti...
), Column('_locale', CHAR(length=2), table=
, default=ScalarElementColumnDefault('en')), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ____ ERROR at setup of TestClassic.test_does_not_generate_hybrid_properties ____ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(...e=
, default=ScalarElementColumnDefault('en')), Column('word_count', Integer(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ___ ERROR at setup of TestDeclarative.test_current_translation_as_expression ___ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _________ ERROR at setup of TestDeclarative.test_order_by_translation __________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _____ ERROR at setup of TestDeclarative.test_fallback_locale_as_expression _____ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _______________ ERROR at setup of TestDeclarative.test_querying ________________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _____ ERROR at setup of TestClassic.test_current_translation_as_expression _____ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ___________ ERROR at setup of TestClassic.test_order_by_translation ____________ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s _______ ERROR at setup of TestClassic.test_fallback_locale_as_expression _______ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s _________________ ERROR at setup of TestClassic.test_querying __________________ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s __ ERROR at setup of TestDeclarative.test_joinedload_for_current_translation ___ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > DeclarativeTestCase.setup_method(self, method) 302s 302s tests/test_joined_loading.py:59: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:57: in setup_method 302s sa.orm.configure_mappers() 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _ ERROR at setup of TestDeclarative.test_contains_eager_for_current_translation _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > DeclarativeTestCase.setup_method(self, method) 302s 302s tests/test_joined_loading.py:59: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:57: in setup_method 302s sa.orm.configure_mappers() 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ___ ERROR at setup of TestDeclarative.test_joinedload_for_single_translation ___ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > DeclarativeTestCase.setup_method(self, method) 302s 302s tests/test_joined_loading.py:59: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:57: in setup_method 302s sa.orm.configure_mappers() 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _____ ERROR at setup of TestDeclarative.test_joinedload_for_attr_accessor ______ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > DeclarativeTestCase.setup_method(self, method) 302s 302s tests/test_joined_loading.py:59: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:57: in setup_method 302s sa.orm.configure_mappers() 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ____ ERROR at setup of TestDeclarative.test_joinedload_for_all_translations ____ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > DeclarativeTestCase.setup_method(self, method) 302s 302s tests/test_joined_loading.py:59: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:57: in setup_method 302s sa.orm.configure_mappers() 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ____ ERROR at setup of TestClassic.test_joinedload_for_current_translation _____ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > ClassicTestCase.setup_method(self, method) 302s 302s tests/test_joined_loading.py:71: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:140: in setup_method 302s self.create_mappers() 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s __ ERROR at setup of TestClassic.test_contains_eager_for_current_translation ___ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > ClassicTestCase.setup_method(self, method) 302s 302s tests/test_joined_loading.py:71: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:140: in setup_method 302s self.create_mappers() 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s _____ ERROR at setup of TestClassic.test_joinedload_for_single_translation _____ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > ClassicTestCase.setup_method(self, method) 302s 302s tests/test_joined_loading.py:71: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:140: in setup_method 302s self.create_mappers() 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s _______ ERROR at setup of TestClassic.test_joinedload_for_attr_accessor ________ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > ClassicTestCase.setup_method(self, method) 302s 302s tests/test_joined_loading.py:71: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:140: in setup_method 302s self.create_mappers() 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ______ ERROR at setup of TestClassic.test_joinedload_for_all_translations ______ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > ClassicTestCase.setup_method(self, method) 302s 302s tests/test_joined_loading.py:71: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:140: in setup_method 302s self.create_mappers() 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ________ ERROR at setup of TestDeclarative.test_auto_creates_relations _________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 302s mapper._adapt_inherited_property(key, prop, init) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 302s self._configure_property(key, prop, init=False, setparent=False) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 302s prop.instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 302s attributes.register_descriptor( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 302s descriptor = InstrumentedAttribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 302s self.dispatch._update(base[key].dispatch) 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ___ ERROR at setup of TestDeclarative.test_auto_creates_current_translation ____ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 302s mapper._adapt_inherited_property(key, prop, init) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 302s self._configure_property(key, prop, init=False, setparent=False) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 302s prop.instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 302s attributes.register_descriptor( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 302s descriptor = InstrumentedAttribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 302s self.dispatch._update(base[key].dispatch) 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ________ ERROR at setup of TestDeclarative.test_translatable_attributes ________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 302s mapper._adapt_inherited_property(key, prop, init) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 302s self._configure_property(key, prop, init=False, setparent=False) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 302s prop.instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 302s attributes.register_descriptor( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 302s descriptor = InstrumentedAttribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 302s self.dispatch._update(base[key].dispatch) 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _______ ERROR at setup of TestDeclarative.test_inherits_child_properties _______ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 302s mapper._adapt_inherited_property(key, prop, init) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 302s self._configure_property(key, prop, init=False, setparent=False) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 302s prop.instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 302s attributes.register_descriptor( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 302s descriptor = InstrumentedAttribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 302s self.dispatch._update(base[key].dispatch) 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s __________ ERROR at setup of TestDeclarative.test_translated_columns ___________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 302s mapper._adapt_inherited_property(key, prop, init) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 302s self._configure_property(key, prop, init=False, setparent=False) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 302s prop.instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 302s attributes.register_descriptor( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 302s descriptor = InstrumentedAttribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 302s self.dispatch._update(base[key].dispatch) 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s __________ ERROR at setup of TestDeclarative.test_property_delegators __________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 302s mapper._adapt_inherited_property(key, prop, init) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 302s self._configure_property(key, prop, init=False, setparent=False) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 302s prop.instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 302s attributes.register_descriptor( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 302s descriptor = InstrumentedAttribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 302s self.dispatch._update(base[key].dispatch) 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ______________ ERROR at setup of TestDeclarative.test_table_name _______________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 302s mapper._adapt_inherited_property(key, prop, init) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 302s self._configure_property(key, prop, init=False, setparent=False) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 302s prop.instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 302s attributes.register_descriptor( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 302s descriptor = InstrumentedAttribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 302s self.dispatch._update(base[key].dispatch) 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _________ ERROR at setup of TestDeclarative.test_inherits_parent_table _________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 302s mapper._adapt_inherited_property(key, prop, init) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 302s self._configure_property(key, prop, init=False, setparent=False) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 302s prop.instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 302s attributes.register_descriptor( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 302s descriptor = InstrumentedAttribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 302s self.dispatch._update(base[key].dispatch) 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s __________ ERROR at setup of TestClassic.test_auto_creates_relations ___________ 302s 302s self = 302s 302s def create_mappers(self): 302s > sa.orm.mapper(self.TextItem, self.text_item, 302s polymorphic_on=self.text_item.c.discriminator) 302s 302s tests/test_joined_table_inheritance.py:155: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 302s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s _____ ERROR at setup of TestClassic.test_auto_creates_current_translation ______ 302s 302s self = 302s 302s def create_mappers(self): 302s > sa.orm.mapper(self.TextItem, self.text_item, 302s polymorphic_on=self.text_item.c.discriminator) 302s 302s tests/test_joined_table_inheritance.py:155: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 302s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s __________ ERROR at setup of TestClassic.test_translatable_attributes __________ 302s 302s self = 302s 302s def create_mappers(self): 302s > sa.orm.mapper(self.TextItem, self.text_item, 302s polymorphic_on=self.text_item.c.discriminator) 302s 302s tests/test_joined_table_inheritance.py:155: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 302s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s _________ ERROR at setup of TestClassic.test_inherits_child_properties _________ 302s 302s self = 302s 302s def create_mappers(self): 302s > sa.orm.mapper(self.TextItem, self.text_item, 302s polymorphic_on=self.text_item.c.discriminator) 302s 302s tests/test_joined_table_inheritance.py:155: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 302s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ____________ ERROR at setup of TestClassic.test_translated_columns _____________ 302s 302s self = 302s 302s def create_mappers(self): 302s > sa.orm.mapper(self.TextItem, self.text_item, 302s polymorphic_on=self.text_item.c.discriminator) 302s 302s tests/test_joined_table_inheritance.py:155: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 302s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ____________ ERROR at setup of TestClassic.test_property_delegators ____________ 302s 302s self = 302s 302s def create_mappers(self): 302s > sa.orm.mapper(self.TextItem, self.text_item, 302s polymorphic_on=self.text_item.c.discriminator) 302s 302s tests/test_joined_table_inheritance.py:155: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 302s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ________________ ERROR at setup of TestClassic.test_table_name _________________ 302s 302s self = 302s 302s def create_mappers(self): 302s > sa.orm.mapper(self.TextItem, self.text_item, 302s polymorphic_on=self.text_item.c.discriminator) 302s 302s tests/test_joined_table_inheritance.py:155: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 302s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ___________ ERROR at setup of TestClassic.test_inherits_parent_table ___________ 302s 302s self = 302s 302s def create_mappers(self): 302s > sa.orm.mapper(self.TextItem, self.text_item, 302s polymorphic_on=self.text_item.c.discriminator) 302s 302s tests/test_joined_table_inheritance.py:155: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.TextItem'>, Table('text_item', MetaDat...ion', UnicodeText(), table=), Column('discriminator', Unicode(length=255), table=), schema=None)) 302s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=)} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ___________ ERROR at setup of TestDeclarative.test_nullify_relation ____________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Category' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _____________ ERROR at setup of TestClassic.test_nullify_relation ______________ 302s 302s self = 302s 302s def create_mappers(self): 302s > sa.orm.mapper(self.Article, self.article) 302s 302s tests/test_relationships.py:101: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('i...), table=
, primary_key=True, nullable=False), Column('content', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ________ ERROR at setup of TestDeclarative.test_auto_creates_relations _________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ________ ERROR at setup of TestDeclarative.test_translatable_attributes ________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _______ ERROR at setup of TestDeclarative.test_relationship_consistency ________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s __________ ERROR at setup of TestDeclarative.test_property_delegators __________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ____________ ERROR at setup of TestDeclarative.test_commit_session _____________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ________________ ERROR at setup of TestDeclarative.test_delete _________________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s __________ ERROR at setup of TestDeclarative.test_translated_columns ___________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _ ERROR at setup of TestDeclarative.test_appends_locale_column_to_translation_table _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s __________ ERROR at setup of TestClassic.test_auto_creates_relations ___________ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s __________ ERROR at setup of TestClassic.test_translatable_attributes __________ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s _________ ERROR at setup of TestClassic.test_relationship_consistency __________ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ____________ ERROR at setup of TestClassic.test_property_delegators ____________ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ______________ ERROR at setup of TestClassic.test_commit_session _______________ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s __________________ ERROR at setup of TestClassic.test_delete ___________________ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ____________ ERROR at setup of TestClassic.test_translated_columns _____________ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s _ ERROR at setup of TestClassic.test_appends_locale_column_to_translation_table _ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s 302s self.create_tables() 302s self.create_models() 302s > self.create_mappers() 302s 302s tests/__init__.py:140: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ___ ERROR at setup of TestDeclarative.test_auto_creates_translation_objects ____ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > DeclarativeTestCase.setup_method(self, method) 302s 302s tests/test_translation_auto_creation.py:21: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:57: in setup_method 302s sa.orm.configure_mappers() 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _____ ERROR at setup of TestClassic.test_auto_creates_translation_objects ______ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > ClassicTestCase.setup_method(self, method) 302s 302s tests/test_translation_auto_creation.py:31: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:140: in setup_method 302s self.create_mappers() 302s tests/__init__.py:213: in create_mappers 302s sa.orm.mapper(self.Article, self.article) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('article', MetaData(), Column('id', Integer(), table=
, primary_key=True, nullable=False), Column('description', UnicodeText(), table=
), schema=None)) 302s kw = {} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s _ ERROR at setup of TestDeclarative.test_auto_sets_nullables_as_empty_strings __ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'ExtendedArticle' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > DeclarativeTestCase.setup_method(self, method) 302s 302s tests/test_translation_auto_creation_with_non_nullables.py:26: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:57: in setup_method 302s sa.orm.configure_mappers() 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2235: in _configure_property 302s mapper._adapt_inherited_property(key, prop, init) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2051: in _adapt_inherited_property 302s self._configure_property(key, prop, init=False, setparent=False) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2232: in _configure_property 302s prop.instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/relationships.py:523: in instrument_class 302s attributes.register_descriptor( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2646: in register_descriptor 302s descriptor = InstrumentedAttribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:231: in __init__ 302s self.dispatch._update(base[key].dispatch) 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s ___ ERROR at setup of TestClassic.test_auto_sets_nullables_as_empty_strings ____ 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s > ClassicTestCase.setup_method(self, method) 302s 302s tests/test_translation_auto_creation_with_non_nullables.py:75: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s tests/__init__.py:140: in setup_method 302s self.create_mappers() 302s tests/test_translation_auto_creation_with_non_nullables.py:135: in create_mappers 302s sa.orm.mapper(self.Article, self.article, 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s arg = (.Article'>, Table('...ription', UnicodeText(), table=
), Column('discriminator', Unicode(length=255), table=
), schema=None)) 302s kw = {'polymorphic_on': Column('discriminator', Unicode(length=255), table=
)} 302s 302s def _mapper_fn(*arg: Any, **kw: Any) -> NoReturn: 302s """Placeholder for the now-removed ``mapper()`` function. 302s 302s Classical mappings should be performed using the 302s :meth:`_orm.registry.map_imperatively` method. 302s 302s This symbol remains in SQLAlchemy 2.0 to suit the deprecated use case 302s of using the ``mapper()`` function as a target for ORM event listeners, 302s which failed to be marked as deprecated in the 1.4 series. 302s 302s Global ORM mapper listeners should instead use the :class:`_orm.Mapper` 302s class as the target. 302s 302s .. versionchanged:: 2.0 The ``mapper()`` function was removed; the 302s symbol remains temporarily as a placeholder for the event listening 302s use case. 302s 302s """ 302s > raise InvalidRequestError( 302s "The 'sqlalchemy.orm.mapper()' function is removed as of " 302s "SQLAlchemy 2.0. Use the " 302s "'sqlalchemy.orm.registry.map_imperatively()` " 302s "method of the ``sqlalchemy.orm.registry`` class to perform " 302s "classical mapping." 302s ) 302s 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. 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/_orm_constructors.py:2007: InvalidRequestError 302s ____________ ERROR at setup of TestDeclarative.test_proxy_contains _____________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _ ERROR at setup of TestDeclarative.test_translation_mapping_attribute_getter __ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _ ERROR at setup of TestDeclarative.test_attribute_accessor_for_unknown_locale _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s __________ ERROR at setup of TestDeclarative.test_proxy_not_contains ___________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s self.connection = self.engine.connect() 302s self.connection.query_count = 0 302s self.Model = declarative_base() 302s 302s self.create_models() 302s 302s if self.configure_mappers: 302s > sa.orm.configure_mappers() 302s 302s tests/__init__.py:57: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4173: in configure_mappers 302s _configure_registries(_all_registries(), cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s _________________ ERROR at setup of TestDeclarative.test_items _________________ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:50: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s _______________ ERROR at setup of TestDeclarative.test_iteritems _______________ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:50: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s _______________ ERROR at setup of TestDeclarative.test_set_item ________________ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:50: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s _________________ ERROR at setup of TestDeclarative.test_repr __________________ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:50: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s _________________ ERROR at setup of TestDeclarative.test_iter __________________ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:50: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s ________________ ERROR at setup of TestDeclarative.test_values _________________ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.engine = create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:50: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s ______________ ERROR at setup of TestClassic.test_proxy_contains _______________ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:135: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s ___ ERROR at setup of TestClassic.test_translation_mapping_attribute_getter ____ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:135: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s ___ ERROR at setup of TestClassic.test_attribute_accessor_for_unknown_locale ___ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:135: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s ____________ ERROR at setup of TestClassic.test_proxy_not_contains _____________ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:135: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s ___________________ ERROR at setup of TestClassic.test_items ___________________ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:135: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s _________________ ERROR at setup of TestClassic.test_iteritems _________________ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:135: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s _________________ ERROR at setup of TestClassic.test_set_item __________________ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:135: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s ___________________ ERROR at setup of TestClassic.test_repr ____________________ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:135: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s ___________________ ERROR at setup of TestClassic.test_iter ____________________ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:135: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s __________________ ERROR at setup of TestClassic.test_values ___________________ 302s 302s self = 302s engine = Engine(postgresql://postgres@localhost/sqlalchemy_i18n_test) 302s connection = None, _has_events = None, _allow_revalidate = True 302s _allow_autobegin = True 302s 302s def __init__( 302s self, 302s engine: Engine, 302s connection: Optional[PoolProxiedConnection] = None, 302s _has_events: Optional[bool] = None, 302s _allow_revalidate: bool = True, 302s _allow_autobegin: bool = True, 302s ): 302s """Construct a new Connection.""" 302s self.engine = engine 302s self.dialect = dialect = engine.dialect 302s 302s if connection is None: 302s try: 302s > self._dbapi_connection = engine.raw_connection() 302s 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E psycopg2.OperationalError: connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s 302s The above exception was the direct cause of the following exception: 302s 302s self = 302s method = > 302s 302s def setup_method(self, method): 302s self.metadata = sa.MetaData() 302s 302s self.engine = sa.create_engine(self.engine_uri) 302s # self.engine.echo = True 302s > self.connection = self.engine.connect() 302s 302s tests/__init__.py:135: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3278: in connect 302s return self._connection_cls(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:148: in __init__ 302s Connection._handle_dbapi_exception_noconnection( 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:2442: in _handle_dbapi_exception_noconnection 302s raise sqlalchemy_exception.with_traceback(exc_info[2]) from e 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:146: in __init__ 302s self._dbapi_connection = engine.raw_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/base.py:3302: in raw_connection 302s return self.pool.connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:449: in connect 302s return _ConnectionFairy._checkout(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:1263: in _checkout 302s fairy = _ConnectionRecord.checkout(pool) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:712: in checkout 302s rec = pool._do_get() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:179: in _do_get 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py:177: in _do_get 302s return self._create_connection() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:390: in _create_connection 302s return _ConnectionRecord(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:674: in __init__ 302s self.__connect() 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:900: in __connect 302s with util.safe_reraise(): 302s /usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py:146: in __exit__ 302s raise exc_value.with_traceback(exc_tb) 302s /usr/lib/python3/dist-packages/sqlalchemy/pool/base.py:896: in __connect 302s self.dbapi_connection = connection = pool._invoke_creator(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/create.py:643: in connect 302s return dialect.connect(*cargs, **cparams) 302s /usr/lib/python3/dist-packages/sqlalchemy/engine/default.py:621: in connect 302s return self.loaded_dbapi.connect(*cargs, **cparams) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s dsn = 'host=localhost dbname=sqlalchemy_i18n_test user=postgres' 302s connection_factory = None, cursor_factory = None 302s kwargs = {'dbname': 'sqlalchemy_i18n_test', 'host': 'localhost', 'user': 'postgres'} 302s kwasync = {} 302s 302s def connect(dsn=None, connection_factory=None, cursor_factory=None, **kwargs): 302s """ 302s Create a new database connection. 302s 302s The connection parameters can be specified as a string: 302s 302s conn = psycopg2.connect("dbname=test user=postgres password=secret") 302s 302s or using a set of keyword arguments: 302s 302s conn = psycopg2.connect(database="test", user="postgres", password="secret") 302s 302s Or as a mix of both. The basic connection parameters are: 302s 302s - *dbname*: the database name 302s - *database*: the database name (only as keyword argument) 302s - *user*: user name used to authenticate 302s - *password*: password used to authenticate 302s - *host*: database host address (defaults to UNIX socket if not provided) 302s - *port*: connection port number (defaults to 5432 if not provided) 302s 302s Using the *connection_factory* parameter a different class or connections 302s factory can be specified. It should be a callable object taking a dsn 302s argument. 302s 302s Using the *cursor_factory* parameter, a new default cursor factory will be 302s used by cursor(). 302s 302s Using *async*=True an asynchronous connection will be created. *async_* is 302s a valid alias (for Python versions where ``async`` is a keyword). 302s 302s Any other keyword parameter will be passed to the underlying client 302s library: the list of supported parameters depends on the library version. 302s 302s """ 302s kwasync = {} 302s if 'async' in kwargs: 302s kwasync['async'] = kwargs.pop('async') 302s if 'async_' in kwargs: 302s kwasync['async_'] = kwargs.pop('async_') 302s 302s dsn = _ext.make_dsn(dsn, **kwargs) 302s > conn = _connect(dsn, connection_factory=connection_factory, **kwasync) 302s E sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) connection to server at "localhost" (127.0.0.1), port 34947 failed: FATAL: sorry, too many clients already 302s E 302s E (Background on this error at: https://sqlalche.me/e/20/e3q8) 302s 302s /usr/lib/python3/dist-packages/psycopg2/__init__.py:122: OperationalError 302s =================================== FAILURES =================================== 302s ___________ TestDeclarative.test_does_not_generate_hybrid_properties ___________ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s > return getattr(class_, '_translation_%s' % locale) 302s E AttributeError: type object 'Article' has no attribute '_translation__slots_dispatch' 302s 302s sqlalchemy_i18n/comparators.py:13: AttributeError 302s 302s During handling of the above exception, another exception occurred: 302s 302s self = 302s 302s def test_does_not_generate_hybrid_properties(self): 302s > self.Article() 302s 302s tests/test_hybrid_property_exclusion.py:15: 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s :4: in __init__ 302s ??? 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/state.py:566: in _initialize_instance 302s manager.dispatch.init(self, args, kwargs) 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:497: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4396: in _event_on_init 302s instrumenting_mapper._check_configure() 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2388: in _check_configure 302s _configure_registries({self.registry}, cascade=True) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:4207: in _configure_registries 302s Mapper.dispatch._for_class(Mapper).after_configured() # type: ignore 302s /usr/lib/python3/dist-packages/sqlalchemy/event/attr.py:378: in __call__ 302s fn(*args, **kw) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/events.py:891: in wrap 302s fn(*arg, **kw) 302s sqlalchemy_i18n/manager.py:110: in configure_translatable_classes 302s RelationshipBuilder(self, cls)() 302s sqlalchemy_i18n/builders.py:228: in __call__ 302s self.assign_translations() 302s sqlalchemy_i18n/builders.py:186: in assign_translations 302s mapper.add_property('_translations', sa.orm.relationship( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2432: in add_property 302s prop = self._configure_property( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/mapper.py:2239: in _configure_property 302s prop.post_instrument_class(self) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/interfaces.py:1092: in post_instrument_class 302s self.strategy.init_class_attribute(mapper) 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:788: in init_class_attribute 302s _register_attribute( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/strategies.py:122: in _register_attribute 302s desc = attributes.register_attribute_impl( 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:2605: in register_attribute_impl 302s "_Dispatch[QueryableAttribute[Any]]", manager[key].dispatch 302s /usr/lib/python3/dist-packages/sqlalchemy/event/base.py:465: in __get__ 302s if hasattr(obj, "_slots_dispatch"): 302s /usr/lib/python3/dist-packages/sqlalchemy/orm/attributes.py:472: in __getattr__ 302s return getattr(self.comparator, key) 302s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 302s 302s self = 302s locale = '_slots_dispatch' 302s 302s def __getattr__(self, locale): 302s class_ = self._parentmapper.class_ 302s try: 302s return getattr(class_, '_translation_%s' % locale) 302s except AttributeError: 302s > raise UnknownLocaleError(locale, class_) 302s E sqlalchemy_i18n.exc.UnknownLocaleError: Unknown locale _slots_dispatch given for instance of class . Locale is not one of ['en', 'fi'] 302s 302s sqlalchemy_i18n/comparators.py:15: UnknownLocaleError 302s =============================== warnings summary =============================== 302s sqlalchemy_i18n/translatable.py:62 302s /tmp/autopkgtest.Wdtz8L/build.5WL/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. 302s @sa.event.listens_for(sa.orm.mapper, 'expire') 302s 302s sqlalchemy_i18n/__init__.py:41 302s /tmp/autopkgtest.Wdtz8L/build.5WL/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. 302s sa.event.listen( 302s 302s sqlalchemy_i18n/__init__.py:44 302s /tmp/autopkgtest.Wdtz8L/build.5WL/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. 302s sa.event.listen( 302s 302s tests/test_common_base_class.py: 1 warning 302s tests/test_comparator.py: 2 warnings 302s tests/test_composite_primary_key.py: 1 warning 302s tests/test_configuration.py: 2 warnings 302s tests/test_current_translation_property.py: 3 warnings 302s tests/test_current_translation_property_with_locale.py: 1 warning 302s tests/test_custom_base_class.py: 1 warning 302s tests/test_fallback_locale_as_callable.py: 2 warnings 302s tests/test_fallback_locale_without_class_default.py: 2 warnings 302s tests/test_fallback_translation.py: 3 warnings 302s tests/test_find_translations.py: 2 warnings 302s tests/test_hybrid_property_as_dynamic_source_locale.py: 1 warning 302s tests/test_hybrid_property_exclusion.py: 1 warning 302s tests/test_join_expressions.py: 4 warnings 302s tests/test_joined_loading.py: 5 warnings 302s tests/test_joined_table_inheritance.py: 8 warnings 302s tests/test_property_collision.py: 1 warning 302s tests/test_relationships.py: 1 warning 302s tests/test_translatable.py: 8 warnings 302s tests/test_translation_auto_creation.py: 1 warning 302s tests/test_translation_auto_creation_with_non_nullables.py: 1 warning 302s tests/test_translation_mapping.py: 4 warnings 302s /tmp/autopkgtest.Wdtz8L/build.5WL/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) 302s self.Model = declarative_base() 302s 302s tests/test_common_base_class.py: 2 warnings 302s tests/test_comparator.py: 2 warnings 302s tests/test_composite_primary_key.py: 1 warning 302s tests/test_configuration.py: 2 warnings 302s tests/test_current_translation_property.py: 3 warnings 302s tests/test_current_translation_property_with_locale.py: 1 warning 302s tests/test_custom_base_class.py: 1 warning 302s tests/test_fallback_locale_as_callable.py: 2 warnings 302s tests/test_fallback_locale_without_class_default.py: 2 warnings 302s tests/test_fallback_translation.py: 3 warnings 302s tests/test_find_translations.py: 2 warnings 302s tests/test_hybrid_property_as_dynamic_source_locale.py: 1 warning 302s tests/test_hybrid_property_exclusion.py: 1 warning 302s tests/test_join_expressions.py: 4 warnings 302s tests/test_joined_loading.py: 5 warnings 302s tests/test_joined_table_inheritance.py: 8 warnings 302s tests/test_property_collision.py: 1 warning 302s tests/test_relationships.py: 1 warning 302s tests/test_translatable.py: 8 warnings 302s tests/test_translation_auto_creation.py: 1 warning 302s tests/test_translation_auto_creation_with_non_nullables.py: 1 warning 302s tests/test_translation_mapping.py: 4 warnings 302s /tmp/autopkgtest.Wdtz8L/build.5WL/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) 302s if has_inherited_table(cls): 302s 302s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 302s =========================== short test summary info ============================ 302s FAILED tests/test_hybrid_property_exclusion.py::TestDeclarative::test_does_not_generate_hybrid_properties 302s ERROR tests/test_common_base_class.py::TestDeclarative::test_translatable_dict_copied_to_each_child_class 302s ERROR tests/test_common_base_class.py::TestClassic::test_translatable_dict_copied_to_each_child_class 302s ERROR tests/test_comparator.py::TestDeclarative::test_attribute_accessor_for_unknown_locale 302s ERROR tests/test_comparator.py::TestDeclarative::test_attribute_accessors - s... 302s ERROR tests/test_comparator.py::TestClassic::test_attribute_accessor_for_unknown_locale 302s ERROR tests/test_comparator.py::TestClassic::test_attribute_accessors - sqlal... 302s ERROR tests/test_composite_primary_key.py::TestDeclarative::test_relationships 302s ERROR tests/test_composite_primary_key.py::TestClassic::test_relationships - ... 302s ERROR tests/test_configuration.py::TestTranslationBaseCustomization::test_customize_foreign_key_args 302s ERROR tests/test_configuration.py::TestTranslationBaseCustomization::test_customize_relationships_args 302s ERROR tests/test_current_translation_property.py::TestDeclarative::test_as_object_property 302s ERROR tests/test_current_translation_property.py::TestDeclarative::test_as_class_property 302s ERROR tests/test_current_translation_property.py::TestDeclarative::test_setter 302s ERROR tests/test_current_translation_property.py::TestClassic::test_as_object_property 302s ERROR tests/test_current_translation_property.py::TestClassic::test_as_class_property 302s ERROR tests/test_current_translation_property.py::TestClassic::test_setter - ... 302s ERROR tests/test_current_translation_property_with_locale.py::TestDeclarative::test_converts_locale_object_to_unicode 302s ERROR tests/test_current_translation_property_with_locale.py::TestClassic::test_converts_locale_object_to_unicode 302s ERROR tests/test_custom_base_class.py::TestDeclarative::test_translatable_dict_copied_to_each_child_class 302s ERROR tests/test_fallback_locale_as_callable.py::TestDeclarative::test_hybrid_properties_support_callable_fallback_locales 302s ERROR tests/test_fallback_locale_as_callable.py::TestDeclarative::test_locale_fallback 302s ERROR tests/test_fallback_locale_as_callable.py::TestClassic::test_hybrid_properties_support_callable_fallback_locales 302s ERROR tests/test_fallback_locale_as_callable.py::TestClassic::test_locale_fallback 302s ERROR tests/test_fallback_locale_without_class_default.py::TestDeclarative::test_hybrid_properties_support_callable_fallback_locales 302s ERROR tests/test_fallback_locale_without_class_default.py::TestDeclarative::test_locale_fallback 302s ERROR tests/test_fallback_locale_without_class_default.py::TestClassic::test_hybrid_properties_support_callable_fallback_locales 302s ERROR tests/test_fallback_locale_without_class_default.py::TestClassic::test_locale_fallback 302s ERROR tests/test_fallback_translation.py::TestDeclarative::test_as_object_property_with_force_locale 302s ERROR tests/test_fallback_translation.py::TestDeclarative::test_as_class_property 302s ERROR tests/test_fallback_translation.py::TestDeclarative::test_setter - sqla... 302s ERROR tests/test_fallback_translation.py::TestClassic::test_as_object_property_with_force_locale 302s ERROR tests/test_fallback_translation.py::TestClassic::test_as_class_property 302s ERROR tests/test_fallback_translation.py::TestClassic::test_setter - sqlalche... 302s ERROR tests/test_find_translations.py::TestDeclarative::test_with_full_confidence 302s ERROR tests/test_find_translations.py::TestDeclarative::test_with_varying_confidence 302s ERROR tests/test_find_translations.py::TestClassic::test_with_full_confidence 302s ERROR tests/test_find_translations.py::TestClassic::test_with_varying_confidence 302s ERROR tests/test_hybrid_property_as_dynamic_source_locale.py::TestDeclarative::test_joinedload_for_current_translation 302s ERROR tests/test_hybrid_property_as_dynamic_source_locale.py::TestClassic::test_joinedload_for_current_translation 302s ERROR tests/test_hybrid_property_exclusion.py::TestClassic::test_does_not_generate_hybrid_properties 302s ERROR tests/test_join_expressions.py::TestDeclarative::test_current_translation_as_expression 302s ERROR tests/test_join_expressions.py::TestDeclarative::test_order_by_translation 302s ERROR tests/test_join_expressions.py::TestDeclarative::test_fallback_locale_as_expression 302s ERROR tests/test_join_expressions.py::TestDeclarative::test_querying - sqlalc... 302s ERROR tests/test_join_expressions.py::TestClassic::test_current_translation_as_expression 302s ERROR tests/test_join_expressions.py::TestClassic::test_order_by_translation 302s ERROR tests/test_join_expressions.py::TestClassic::test_fallback_locale_as_expression 302s ERROR tests/test_join_expressions.py::TestClassic::test_querying - sqlalchemy... 302s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_current_translation 302s ERROR tests/test_joined_loading.py::TestDeclarative::test_contains_eager_for_current_translation 302s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_single_translation 302s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_attr_accessor 302s ERROR tests/test_joined_loading.py::TestDeclarative::test_joinedload_for_all_translations 302s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_current_translation 302s ERROR tests/test_joined_loading.py::TestClassic::test_contains_eager_for_current_translation 302s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_single_translation 302s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_attr_accessor 302s ERROR tests/test_joined_loading.py::TestClassic::test_joinedload_for_all_translations 302s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_auto_creates_relations 302s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_auto_creates_current_translation 302s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_translatable_attributes 302s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_inherits_child_properties 302s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_translated_columns 302s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_property_delegators 302s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_table_name 302s ERROR tests/test_joined_table_inheritance.py::TestDeclarative::test_inherits_parent_table 302s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_auto_creates_relations 302s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_auto_creates_current_translation 302s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_translatable_attributes 302s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_inherits_child_properties 302s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_translated_columns 302s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_property_delegators 302s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_table_name - ... 302s ERROR tests/test_joined_table_inheritance.py::TestClassic::test_inherits_parent_table 302s ERROR tests/test_relationships.py::TestDeclarative::test_nullify_relation - s... 302s ERROR tests/test_relationships.py::TestClassic::test_nullify_relation - sqlal... 302s ERROR tests/test_translatable.py::TestDeclarative::test_auto_creates_relations 302s ERROR tests/test_translatable.py::TestDeclarative::test_translatable_attributes 302s ERROR tests/test_translatable.py::TestDeclarative::test_relationship_consistency 302s ERROR tests/test_translatable.py::TestDeclarative::test_property_delegators 302s ERROR tests/test_translatable.py::TestDeclarative::test_commit_session - sqla... 302s ERROR tests/test_translatable.py::TestDeclarative::test_delete - sqlalchemy_i... 302s ERROR tests/test_translatable.py::TestDeclarative::test_translated_columns - ... 302s ERROR tests/test_translatable.py::TestDeclarative::test_appends_locale_column_to_translation_table 302s ERROR tests/test_translatable.py::TestClassic::test_auto_creates_relations - ... 302s ERROR tests/test_translatable.py::TestClassic::test_translatable_attributes 302s ERROR tests/test_translatable.py::TestClassic::test_relationship_consistency 302s ERROR tests/test_translatable.py::TestClassic::test_property_delegators - sql... 302s ERROR tests/test_translatable.py::TestClassic::test_commit_session - sqlalche... 302s ERROR tests/test_translatable.py::TestClassic::test_delete - sqlalchemy.exc.I... 302s ERROR tests/test_translatable.py::TestClassic::test_translated_columns - sqla... 302s ERROR tests/test_translatable.py::TestClassic::test_appends_locale_column_to_translation_table 302s ERROR tests/test_translation_auto_creation.py::TestDeclarative::test_auto_creates_translation_objects 302s ERROR tests/test_translation_auto_creation.py::TestClassic::test_auto_creates_translation_objects 302s ERROR tests/test_translation_auto_creation_with_non_nullables.py::TestDeclarative::test_auto_sets_nullables_as_empty_strings 302s ERROR tests/test_translation_auto_creation_with_non_nullables.py::TestClassic::test_auto_sets_nullables_as_empty_strings 302s ERROR tests/test_translation_mapping.py::TestDeclarative::test_proxy_contains 302s ERROR tests/test_translation_mapping.py::TestDeclarative::test_translation_mapping_attribute_getter 302s ERROR tests/test_translation_mapping.py::TestDeclarative::test_attribute_accessor_for_unknown_locale 302s ERROR tests/test_translation_mapping.py::TestDeclarative::test_proxy_not_contains 302s ERROR tests/test_translation_mapping.py::TestDeclarative::test_items - sqlalc... 302s ERROR tests/test_translation_mapping.py::TestDeclarative::test_iteritems - sq... 302s ERROR tests/test_translation_mapping.py::TestDeclarative::test_set_item - sql... 302s ERROR tests/test_translation_mapping.py::TestDeclarative::test_repr - sqlalch... 302s ERROR tests/test_translation_mapping.py::TestDeclarative::test_iter - sqlalch... 302s ERROR tests/test_translation_mapping.py::TestDeclarative::test_values - sqlal... 302s ERROR tests/test_translation_mapping.py::TestClassic::test_proxy_contains - s... 302s ERROR tests/test_translation_mapping.py::TestClassic::test_translation_mapping_attribute_getter 302s ERROR tests/test_translation_mapping.py::TestClassic::test_attribute_accessor_for_unknown_locale 302s ERROR tests/test_translation_mapping.py::TestClassic::test_proxy_not_contains 302s ERROR tests/test_translation_mapping.py::TestClassic::test_items - sqlalchemy... 302s ERROR tests/test_translation_mapping.py::TestClassic::test_iteritems - sqlalc... 302s ERROR tests/test_translation_mapping.py::TestClassic::test_set_item - sqlalch... 302s ERROR tests/test_translation_mapping.py::TestClassic::test_repr - sqlalchemy.... 302s ERROR tests/test_translation_mapping.py::TestClassic::test_iter - sqlalchemy.... 302s ERROR tests/test_translation_mapping.py::TestClassic::test_values - sqlalchem... 302s ============ 1 failed, 2 passed, 114 warnings, 116 errors in 28.22s ============ 302s stopping server2024-11-14 18:18:02.894 UTC [3218] LOG: received smart shutdown request 307s 2024-11-14 18:18:07.907 UTC [3320] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.907 UTC [3316] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.907 UTC [3326] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.907 UTC [3323] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.907 UTC [3327] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.907 UTC [3324] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.910 UTC [3248] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.910 UTC [3322] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.910 UTC [3325] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.910 UTC [3321] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.910 UTC [3304] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.911 UTC [3299] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.912 UTC [3317] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.913 UTC [3294] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.914 UTC [3318] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.914 UTC [3319] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.915 UTC [3314] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.915 UTC [3312] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.915 UTC [3284] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.918 UTC [3311] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.918 UTC [3315] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.918 UTC [3313] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.919 UTC [3273] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.920 UTC [3310] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.920 UTC [3263] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.921 UTC [3302] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.922 UTC [3295] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.922 UTC [3308] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.923 UTC [3309] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.925 UTC [3300] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.925 UTC [3285] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.926 UTC [3303] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.926 UTC [3257] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.926 UTC [3307] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.929 UTC [3280] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.929 UTC [3298] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.929 UTC [3297] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.930 UTC [3290] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.930 UTC [3306] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.931 UTC [3240] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.932 UTC [3274] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.932 UTC [3293] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.933 UTC [3287] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.933 UTC [3305] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.935 UTC [3258] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.936 UTC [3292] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.936 UTC [3296] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.936 UTC [3283] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.937 UTC [3271] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.938 UTC [3252] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.938 UTC [3291] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.939 UTC [3267] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.939 UTC [3288] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.940 UTC [3261] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.941 UTC [3289] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.941 UTC [3246] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.942 UTC [3281] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.944 UTC [3256] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.944 UTC [3275] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.945 UTC [3245] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.945 UTC [3286] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.946 UTC [3255] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.947 UTC [3270] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.947 UTC [3251] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.947 UTC [3243] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.948 UTC [3282] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.949 UTC [3239] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.950 UTC [3241] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.951 UTC [3236] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.952 UTC [3269] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.952 UTC [3279] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.953 UTC [3238] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.953 UTC [3235] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.954 UTC [3233] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.954 UTC [3231] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.955 UTC [3268] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.956 UTC [3278] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.956 UTC [3230] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.957 UTC [3229] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.957 UTC [3228] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.958 UTC [3249] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.960 UTC [3277] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.961 UTC [3227] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.961 UTC [3244] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.961 UTC [3276] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.962 UTC [3272] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.964 UTC [3226] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.964 UTC [3266] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.965 UTC [3237] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.966 UTC [3264] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.966 UTC [3262] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.967 UTC [3260] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.968 UTC [3234] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.969 UTC [3259] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.971 UTC [3254] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.971 UTC [3232] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.974 UTC [3253] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.975 UTC [3250] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.975 UTC [3247] FATAL: terminating connection due to unexpected postmaster exit 307s 2024-11-14 18:18:07.978 UTC [3242] FATAL: terminating connection due to unexpected postmaster exit 307s 307s clean up 308s autopkgtest [18:18:09]: test setup-db-and-run-tests.py: -----------------------] 312s autopkgtest [18:18:13]: test setup-db-and-run-tests.py: - - - - - - - - - - results - - - - - - - - - - 312s setup-db-and-run-tests.py PASS 316s autopkgtest [18:18:17]: @@@@@@@@@@@@@@@@@@@@ summary 316s setup-db-and-run-tests.py PASS